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.
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
#blue ⇒ Object (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 |
#green ⇒ Object (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 |
#red ⇒ Object (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 |