Skip to content

Instantly share code, notes, and snippets.

@hone

hone/gist:170411

Created Aug 19, 2009
Embed
What would you like to do?
class Test
def self.foo
puts 'hi'
end
def self.boo
puts 'world'
end
end
[:foo, :boo].each {|method_name| Test.send(method_name) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.