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.



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

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

Instance Attribute Details

#blueObject (readonly)

Returns the value of attribute blue.



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

def blue
  @blue
end

#greenObject (readonly)

Returns the value of attribute green.



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

def green
  @green
end

#redObject (readonly)

Returns the value of attribute red.



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

def red
  @red
end