A
Aldric Giacomoni
Hi everyone,
I've got a "solid" grasp on the basics of Ruby. I can write stuff with
it. Everything is an object, so the Ruby way is to go that way. Some
objects aren't Enumerable, but Enumerable makes us happy. Rdoc is your
friend.
Now, I'm looking for the next steps. I have already found a very, very
basic use for method_missing:
an object has a @property hash, so calling MyObject.x raises an error if
x is not a key, and returns the value of @property[x] otherwise.
What material would you recommend to develop more advanced Ruby skills,
such as metaprogramming, Ruby that writes itself dynamically,
const_missing, method_missing, etc ?
Imagine you're teaching someone and one day you look at them and you say
"Young padawan..."
I've got a "solid" grasp on the basics of Ruby. I can write stuff with
it. Everything is an object, so the Ruby way is to go that way. Some
objects aren't Enumerable, but Enumerable makes us happy. Rdoc is your
friend.
Now, I'm looking for the next steps. I have already found a very, very
basic use for method_missing:
an object has a @property hash, so calling MyObject.x raises an error if
x is not a key, and returns the value of @property[x] otherwise.
What material would you recommend to develop more advanced Ruby skills,
such as metaprogramming, Ruby that writes itself dynamically,
const_missing, method_missing, etc ?
Imagine you're teaching someone and one day you look at them and you say
"Young padawan..."