G
George Moschovitis
Hello everyone,
I would like to use some kind of reflection to get the parameters of a
method.
For example:
class MyClass
def simple_method(last_name, name)
end
end
method_params(MyClass, :simple_method)
=> [:last_name, :name]
I have implement this using ParseTree, but since ParseTree uses
RubyInline which requires a C compiler, and AFAIK is not portable, I
would like a better solution.
Anyone has an idea?
George.
I would like to use some kind of reflection to get the parameters of a
method.
For example:
class MyClass
def simple_method(last_name, name)
end
end
method_params(MyClass, :simple_method)
=> [:last_name, :name]
I have implement this using ParseTree, but since ParseTree uses
RubyInline which requires a C compiler, and AFAIK is not portable, I
would like a better solution.
Anyone has an idea?
George.