Class: Tundengine::TuteValues::Capotes
- Includes:
- AlgebraicDataType
- Defined in:
- lib/tundengine/tute_values/capotes.rb
Instance Method Summary collapse
- #identifier ⇒ Object
-
#initialize(points) ⇒ Capotes
constructor
A new instance of Capotes.
- #points_for_loser(loser, max_points) ⇒ Object
Methods included from AlgebraicDataType
Methods inherited from Base
#finishes_round?, #has_effect?
Methods included from StringifiableByClass
Constructor Details
#initialize(points) ⇒ Capotes
Returns a new instance of Capotes.
7 8 9 10 |
# File 'lib/tundengine/tute_values/capotes.rb', line 7 def initialize(points) @points = points super() end |
Instance Method Details
#identifier ⇒ Object
16 17 18 |
# File 'lib/tundengine/tute_values/capotes.rb', line 16 def identifier [@points] end |
#points_for_loser(loser, max_points) ⇒ Object
12 13 14 |
# File 'lib/tundengine/tute_values/capotes.rb', line 12 def points_for_loser(loser, max_points) [@points, max_points].min end |