Skip to content

Instantly share code, notes, and snippets.

@mjtko
Created March 21, 2012 15:23
Show Gist options
  • Save mjtko/2148375 to your computer and use it in GitHub Desktop.
Save mjtko/2148375 to your computer and use it in GitHub Desktop.
module MyModule
def foo
puts 'new foo'
end
end
class MyClass
def foo
puts 'old foo'
end
include MyModule
end
MyClass.new.foo
=> 'old foo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment