class FiftyTwo::Suit::Color
Constants
- ALL
Attributes
name[R]
rgb[R]
Public Class Methods
new(name, rgb)
click to toggle source
# File lib/fiftytwo/suit/color.rb, line 8 def initialize(name, rgb) @name = name @rgb = rgb end
Public Instance Methods
==(other)
click to toggle source
# File lib/fiftytwo/suit/color.rb, line 18 def ==(other) name == other.name end