Gary Wright
2/6/2007 12:04:00 AM
On Feb 5, 2007, at 6:39 PM, dblack@wobblini.net wrote:
> What you're seeing in the code you've got is this, but strung together
> on one line without much to help you parse it visually if you don't
> already know what to expect. I would tend to write it as:
>
> (class << log; self; end).__send__ etc.
I'd add that
__send__(:define_method, :to_int)
is used instead of simply:
define_method(:to_int)
to override the private status of 'define_method'.
Gary Wright