Class: Gambit::Tools::Cards::Card
- Inherits:
-
Object
- Object
- Gambit::Tools::Cards::Card
- Includes:
- Comparable, Viewable
- Defined in:
- lib/gambit/tools/cards/card.rb
Overview
The base class for all Card objects using the Gambit tools framework.
Direct Known Subclasses
Class Method Summary collapse
-
.each ⇒ Object
Subclasses must provide a creation iterator that will yield each Card in a Deck.
Instance Method Summary collapse
-
#<=>(other) ⇒ Object
Sublclasses must provide a comparator method.
Methods included from Viewable
Class Method Details
.each ⇒ Object
Subclasses must provide a creation iterator that will yield each Card in a Deck.
30 31 32 33 |
# File 'lib/gambit/tools/cards/card.rb', line 30 def self.each( ) raise NotImplementedError, "Subclasses must override self.each()." end |
Instance Method Details
#<=>(other) ⇒ Object
Sublclasses must provide a comparator method.
38 39 40 |
# File 'lib/gambit/tools/cards/card.rb', line 38 def <=>( other ) raise NotImplementedError, "Subclasses must override <=>()." end |