Class: SuperDiff::Csi::TwentyFourBitColor::Triplet
- Inherits:
-
Object
- Object
- SuperDiff::Csi::TwentyFourBitColor::Triplet
- Defined in:
- lib/super_diff/csi/twenty_four_bit_color.rb
Instance Attribute Summary collapse
-
#blue ⇒ Object
readonly
Returns the value of attribute blue.
-
#green ⇒ Object
readonly
Returns the value of attribute green.
-
#red ⇒ Object
readonly
Returns the value of attribute red.
Instance Method Summary collapse
-
#initialize(red:, green:, blue:) ⇒ Triplet
constructor
A new instance of Triplet.
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
#blue ⇒ Object (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 |
#green ⇒ Object (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 |
#red ⇒ Object (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 |