Created
May 5, 2014 18:01
-
-
Save xionon/6f7fad745c75fa9c6165 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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