-
-
Save havenwood/304ef78eb7e6204020d62b7527eff9fd 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
class Foo | |
def Foo.bar | |
:bar | |
end | |
def self.baz | |
:baz | |
end | |
class << self | |
def wombat | |
:wombat | |
end | |
def tofurkey | |
:tofurkey | |
end | |
end | |
end | |
Foo.bar | |
#=> :bar | |
Foo.baz | |
#=> :baz | |
Foo.wombat | |
#=> :wombat | |
Foo.tofurkey | |
#=> :tofurkey |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment