Skip to content

Instantly share code, notes, and snippets.

@bakineggs
Created June 18, 2010 21:04
Show Gist options
  • Select an option

  • Save bakineggs/444232 to your computer and use it in GitHub Desktop.

Select an option

Save bakineggs/444232 to your computer and use it in GitHub Desktop.
class Foo1
end
Foo1.module_eval do
def self.bar
puts 'in Foo1#bar'
end
bar
end
class Foo2
end
Foo2.module_eval do
bar
def self.bar
puts 'in Foo2#bar'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment