Created
October 19, 2017 10:02
-
-
Save markburns/c49bb6d98e4030a34e2e281662749f71 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 SomeClass | |
SomeClass == self | |
def self.a_class_method(options) | |
SomeClass == self | |
end | |
class << self | |
SomeClass.singleton_class == self | |
def another_class_method(options) | |
SomeClass == self | |
end | |
private | |
def yet_another_class_method(to) | |
SomeClass == self | |
end | |
end | |
def some_instance_method | |
self.is_a?(SomeClass) | |
self.class == SomeClass | |
self != SomeClass | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment