J
Jeff Wood
------=_Part_389_19695979.1130879796947
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
... I've been thinking about this for a little while, but, would any of you
find it useful to have ruby be able to provide you with the source of a
function ...
I could see a number of uses. Including being able to modify the function a=
t
run time, or to be able to see the parameter list ... or other things.
Anyways, I was thinking of something like:
func_body =3D Object.method( :to_s ).src
func_body.replace( "\* 3", "\* 4" )
Object.class_eval( func_body )
... what do you think?
j.
--
"http://ruby-lang.org -- do you ruby?"
Jeff Wood
------=_Part_389_19695979.1130879796947--
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
... I've been thinking about this for a little while, but, would any of you
find it useful to have ruby be able to provide you with the source of a
function ...
I could see a number of uses. Including being able to modify the function a=
t
run time, or to be able to see the parameter list ... or other things.
Anyways, I was thinking of something like:
func_body =3D Object.method( :to_s ).src
func_body.replace( "\* 3", "\* 4" )
Object.class_eval( func_body )
... what do you think?
j.
--
"http://ruby-lang.org -- do you ruby?"
Jeff Wood
------=_Part_389_19695979.1130879796947--