[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: Method Reflection
From: gabriele renzi <surrender_it () rc1 ! vip ! ukl ! yahoo ! com>
Date: 2004-02-09 0:45:32
Message-ID: blps10tvdtuj91hkoe6f34t4vjovkk37j0 () 4ax ! com
[Download RAW message or body]
il Mon, 2 Feb 2004 15:00:41 +0900, Benedikt Huber <benjovi@gmx.net> ha
>but i was not able to retrieve any information about
>the formal method parameters (correct term?), neither the number nor the
>name. I wasn't able to retrieve information on instance variables as
>well. Is it possible ?
arity() is your friend. About names: we'll see keyword arguments in
ruby2
>If this kind of information retrieval is considered useful, I would also
>suggest to add in-language comments as in python (especially if the irb
>gets faster and more user friendly ;) )
>
probably yuo mean docstrings. I asked this once and matz answered that
this won't make it in ruby. But you can use the MetaTags module for
this (yes, ruby is impressively flexible :).
Or, post an RCR on rcrchive.net :)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic