Skip to content

Instantly share code, notes, and snippets.

@havenwood

havenwood/foo.rb Secret

Created April 15, 2020 21:07
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 havenwood/304ef78eb7e6204020d62b7527eff9fd to your computer and use it in GitHub Desktop.
Save havenwood/304ef78eb7e6204020d62b7527eff9fd to your computer and use it in GitHub Desktop.
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