Class: SuperDiff::Csi::TwentyFourBitColor::Triplet

Inherits:
Object
  • Object
show all
Defined in:
lib/super_diff/csi/twenty_four_bit_color.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(red:, green:, blue:) ⇒ Triplet

Returns a new instance of Triplet.



96
97
98
99
100
# File 'lib/super_diff/csi/twenty_four_bit_color.rb', line 96

def initialize(red:, green:, blue:)
  @red = red
  @green = green
  @blue = blue
end

Instance Attribute Details

#blueObject (readonly)

Returns the value of attribute blue.



94
95
96
# File 'lib/super_diff/csi/twenty_four_bit_color.rb', line 94

def blue
  @blue
end

#greenObject (readonly)

Returns the value of attribute green.



94
95
96
# File 'lib/super_diff/csi/twenty_four_bit_color.rb', line 94

def green
  @green
end

#redObject (readonly)

Returns the value of attribute red.



94
95
96
# File 'lib/super_diff/csi/twenty_four_bit_color.rb', line 94

def red
  @red
end