Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Created October 2, 2010 13:40
Show Gist options
  • Select an option

  • Save practicingruby/607651 to your computer and use it in GitHub Desktop.

Select an option

Save practicingruby/607651 to your computer and use it in GitHub Desktop.
class Foo
p self
class << self
def apples
"foo"
end
end
end
class Foo
p self
def self.apples
"bar"
end
end
p Foo.apples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment