Created
August 27, 2015 11:00
-
-
Save radwo/9d36b9a83c8653d540ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
%w(foo bar).each { |method_name| | |
define_method(method_name) do | |
puts method_name | |
end | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment