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.



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

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

Instance Attribute Details

#blueObject (readonly)

Returns the value of attribute blue.



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

def blue
  @blue
end

#greenObject (readonly)

Returns the value of attribute green.



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

def green
  @green
end

#redObject (readonly)

Returns the value of attribute red.



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

def red
  @red
end