Skip to content

Instantly share code, notes, and snippets.

@LTe
Created January 20, 2012 20:57
Show Gist options
  • Save LTe/1649525 to your computer and use it in GitHub Desktop.
Save LTe/1649525 to your computer and use it in GitHub Desktop.
module MyModule
def method
puts "method"
end
end
class MyClass
include MyModule
end
MyClass.new.method
module MyModule
def method2
puts "method2"
end
end
MyClass.new.method
MyClass.new.method2
# method
# method
# method2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment