Method: StudioGame::Player#to_s
- Defined in:
- lib/player_class.rb
#to_s ⇒ Object
to_s overwrites/defines the default method for PUTS.
37 38 39 |
# File 'lib/player_class.rb', line 37 def to_s #to_s overwrites/defines the default method for PUTS. "I'm #{@name} with health = #{@health}, points = #{points}, and score = #{score}." end |