Instantly share code, notes, and snippets.

Embed
What would you like to do?
# example 1
class Foo; end
def Foo.bar; end
# example 2
class Foo
def self.bar; end
end
# example 3
class Foo
class << self
def bar; end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment