Skip to content

Instantly share code, notes, and snippets.

@tourdedave
Created March 5, 2014 17:13
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 tourdedave/9371651 to your computer and use it in GitHub Desktop.
Save tourdedave/9371651 to your computer and use it in GitHub Desktop.
module Handler
extend self
attr_accessor :message
def speak
puts message
end
end
module Message
include Handler
def initialize(message)
@message = message
end
end
class Runner
include Message
end
Runner.new('Hello!').speak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment