Class: MTG::Color
- Inherits:
-
Object
- Object
- MTG::Color
- Defined in:
- lib/mtg/color.rb
Constant Summary collapse
- NAMES =
TODO: test
{ 'B' => 'black', 'G' => 'green', 'R' => 'red', 'U' => 'blue', 'W' => 'white' }
Instance Attribute Summary collapse
-
#name ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#abbr ⇒ Object
TODO: test.
-
#initialize(name) ⇒ Color
constructor
TODO: test.
Constructor Details
#initialize(name) ⇒ Color
TODO: test
14 15 16 |
# File 'lib/mtg/color.rb', line 14 def initialize(name) self.name = name end |
Instance Attribute Details
#name ⇒ Object Also known as: to_s
Returns the value of attribute name.
18 19 20 |
# File 'lib/mtg/color.rb', line 18 def name @name end |