Skip to content

Instantly share code, notes, and snippets.

@svenfuchs
Created December 2, 2009 22:03
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 svenfuchs/247648 to your computer and use it in GitHub Desktop.
Save svenfuchs/247648 to your computer and use it in GitHub Desktop.
module Base
def listen
puts "think: interesting stuff ..."
end
end
class Attendee
include Base
end
module Tweets
def listen
super
puts "tweet: great conference! :D"
end
end
module Applause
def listen
super
puts "applause!"
end
end
attendee = Attendee.new
class Attendee
include Tweets
include Applause
end
attendee.listen
# think: interesting stuff ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment