Skip to content

Instantly share code, notes, and snippets.

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 zachgersh/6056500 to your computer and use it in GitHub Desktop.
Save zachgersh/6056500 to your computer and use it in GitHub Desktop.
# Solution for Challenge: Ruby Drill: The self Keyword. Started 2013-07-22T18:43:38+00:00
# There are two representations of self that one can use at any time:
# 1. When defining a class method, self refers to the current class
# 2. When using an instance of a class, self refers to the current instance
# Self refers to the object you are currently calling a method on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment