-
-
Save havenwood/81cbf35781c27eb27d2ff658f7ba5e02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
attr_reader :foo | |
def example | |
@foo # instance variable | |
foo # implicit method call on self | |
self.foo # explicit method call on self | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment