Skip to content

Instantly share code, notes, and snippets.

@JakeAustwick
Created June 22, 2012 18:59
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 JakeAustwick/2974528 to your computer and use it in GitHub Desktop.
Save JakeAustwick/2974528 to your computer and use it in GitHub Desktop.
class Product
def self.hello
'hello from the product class'
end
def hello
"hello from an instance, I'm a product with the ID #{self.id}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment