Skip to content

Instantly share code, notes, and snippets.

@svenfuchs
Created November 29, 2009 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svenfuchs/244944 to your computer and use it in GitHub Desktop.
Save svenfuchs/244944 to your computer and use it in GitHub Desktop.
class Attendee
def listen
puts "think: interesting stuff ..."
end
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