gruner (owner)

Revisions

gist: 107583 Download_button fork
public
Description:
Calling Dynamic Methods in Ruby
Public Clone URL: git://gist.github.com/107583.git
Embed All Files: show embed
Calling Dynamic Methods in Ruby #
1
2
3
4
5
6
# Dynamic Methods
# same as calling MyClass.foo and MyClass.bar
 
["foo", "bar"].each do |method|
  MyClass.send(method)
end