Created
June 13, 2012 18:26
-
-
Save jlogsdon/2925667 to your computer and use it in GitHub Desktop.
This file contains 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 Test | |
def self.runs(thing) | |
define_method(thing) do |*args| | |
run_this_method thing, *args | |
end | |
end | |
def run_this_method(thing, *args) | |
puts "Running #{thing}" | |
end | |
runs :bar | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment