Skip to content

Instantly share code, notes, and snippets.

@kbberker
Last active November 27, 2018 10:16
Show Gist options
  • Save kbberker/42cce46a7197fba624da8a5eff812573 to your computer and use it in GitHub Desktop.
Save kbberker/42cce46a7197fba624da8a5eff812573 to your computer and use it in GitHub Desktop.
Defining self in RUby
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