/*
 * Get a particular method argument by name
 *
 *   # get the method argument named 'x'
 *   
 *   arg = method['x']
 */

static VALUE method_get_argument(VALUE self, VALUE name)
{
	IrmoMethod *method = unwrap_method(self);
	IrmoMethodArg *arg;

	arg = irmo_method_get_argument(method, STR2CSTR(name));

	return wrap_method_arg(arg);
}