Created
October 15, 2014 20:06
-
-
Save jheg/d61ca6951b27a814c5ac to your computer and use it in GitHub Desktop.
self. and @
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
def change_info(n, h, w) | |
self.name = n | |
self.height = h | |
self.weight = w | |
end | |
def change_info(n, h, w) | |
@name = n | |
@height = h | |
@weight = w | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment