Skip to content

Instantly share code, notes, and snippets.

@xionon
Created May 5, 2014 18:01
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 xionon/6f7fad745c75fa9c6165 to your computer and use it in GitHub Desktop.
Save xionon/6f7fad745c75fa9c6165 to your computer and use it in GitHub Desktop.
module Foo
def run
puts 'Does the thing'
end
end
class Bar
include Foo
end
Bar.new.run
Bar.run rescue puts 'Does not do the thing'
class Baz
extend Foo
end
Baz.new.run rescue puts 'Does not do the thing'
Baz.run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment