Skip to content

Instantly share code, notes, and snippets.

@billdueber
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save billdueber/d64c731ba6cac4587a38 to your computer and use it in GitHub Desktop.
Save billdueber/d64c731ba6cac4587a38 to your computer and use it in GitHub Desktop.
module A
def hello
puts "Hello from A"
end
def goodbye
puts "Goodbye from A"
end
end
class B
include A
def hello
puts "Hello from B"
end
end
b = B.new
b.hello
b.goodbye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment