Skip to content

Instantly share code, notes, and snippets.

@cupakromer
Created August 4, 2012 13:12
Show Gist options
  • Save cupakromer/3257656 to your computer and use it in GitHub Desktop.
Save cupakromer/3257656 to your computer and use it in GitHub Desktop.
Steel City Ruby Lightning Talk
def steelcityruby
"I heard you like programming."
end
module Meta
def just_programming
class_eval do
def steelcityruby
"I heard you like programming."
end
end
end
end
class Foo
extend Meta
just_programming
end
Foo.new.steelcityruby
=> "I heard you like programming."
def just_programming
class_eval do
def steelcityruby
"I heard you like programming."
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment