1 | class Human |
Wednesday, November 25, 2009
Dynamically defining class method
There is this concept of metaclass in ruby. If we wanna dynamically define a class method, we need to play with metaclass:
Labels:
meta-programming,
ruby
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment