Created
June 9, 2015 15:19
-
-
Save jhannah/8a075b48ccc50b7af24e to your computer and use it in GitHub Desktop.
Ruby returns
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 Player | |
attr_accessor :name, :move, :score | |
def initialize(name, score: 0) | |
@name = name | |
@score = score | |
end | |
end | |
j = Player.new("jay") | |
puts j.name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment