Created
September 25, 2015 07:54
-
-
Save violarium/4602812dd3102636518b to your computer and use it in GitHub Desktop.
This file contains hidden or 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 MyModule | |
end | |
class MyClass | |
include MyModule | |
end | |
puts MyClass.is_a? MyModule # => false | |
puts MyClass.new.is_a? MyModule # => true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment