Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Interesting snippets on dynamic method definitions in Ruby
Steve Midgley
9/28/2006 1:18:00 PM
Hi,
I'm new to the list - I hope this posting is welcome. I've been (like
everyone?) learning and enjoying Ruby's intricacies. One of those
intricacies is explained briefly in the Dave Thomas' Pickaxe book:
dynamic methods. The code was from Tadayoshi Funaba (p. 391 in version
2).
I thought this code was interesting but also quite dense and hard to
understand. I decided to try to write a more readable version, to help
me understand the functions. I didn't re-implement all of the original
functionality but I came pretty close.
Rather than clog the digest readers' mail with lots of code, I've posted
an article detailing what I did on my website. If there's a better place
to put sample code, or if I should have posted all code/commentary in
this message, just let me know and in the future I'll do that. I'll look
forward to learning a lot and hopefully contributing on this list!
I hope this article is useful to others:
http://www.misuse.org/cms/article.php?story=2006092...
Sincerely,
Steve
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Interesting snippets on dynamic method definitions in Ruby
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password