Class: Treasure

Inherits:
Struct
  • Object
show all
Defined in:
lib/text_game/treasure_trove.rb

Instance Attribute Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



1
2
3
# File 'lib/text_game/treasure_trove.rb', line 1

def name
  @name
end

#pointsObject

Returns the value of attribute points

Returns:

  • (Object)

    the current value of points



1
2
3
# File 'lib/text_game/treasure_trove.rb', line 1

def points
  @points
end