Last active
November 27, 2018 10:16
-
-
Save kbberker/42cce46a7197fba624da8a5eff812573 to your computer and use it in GitHub Desktop.
Defining self in RUby
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 VideoGameCharacter | |
def initialize(name, level) | |
@name = name | |
@level = level | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment