Thanks Roland,

ParseTree and Ripper are file source parsers, not runtime reflection
apis so they might not give me the correct parameter names if I can't
get to the source file from a running point of my code.

Thanks anyways, lets see if someone from the JRuby teams knows if its available.

regards

Guilherme Silveira
Caelum | Ensino e Inovação
http://www.caelum.com.br/



On Mon, Nov 15, 2010 at 1:02 PM, Roland Swingler
<[email protected]> wrote:
> I'm pretty sure that there is no access to the parameter names, from
> looking at this sort of problem a year or so ago. That was on MRI
> ruby, don't know if Jruby is different in this regard.
>
> You might get some mileage by looking at using ParseTree (ruby 1.8) or
> Ripper (1.9) to get information from the source text.
>
> HTH
> Roland
>
> On Mon, Nov 15, 2010 at 12:04 PM, Guilherme Silveira
> <[email protected]> wrote:
>> Hello,
>>
>> When introspecting a RubyClass object I would like to access a
>> method's parameter name list. The Arity class only gives me access to
>> the arity number itself, not the variables names. Is it possible to
>> access that list or is it lost while evaluating the .rb source?
>>
>> Regards
>>
>> Guilherme Silveira
>> Caelum | Ensino e Inovação
>> http://www.caelum.com.br/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to