Class: CardObject

Inherits:
Object
  • Object
show all
Includes:
Colorful
Defined in:
lib/ttr/objects/card.rb

Instance Attribute Summary

Attributes included from Colorful

#color

Instance Method Summary collapse

Methods included from Colorful

#exact_match?, #match?

Constructor Details

#initialize(color) ⇒ CardObject

Returns a new instance of CardObject.



9
10
11
# File 'lib/ttr/objects/card.rb', line 9

def initialize (color)
  @color = color.to_sym
end