Class: SuperDiff::Csi::TwentyFourBitSequence
- Inherits:
-
Object
- Object
- SuperDiff::Csi::TwentyFourBitSequence
- Defined in:
- lib/super_diff/csi/twenty_four_bit_sequence.rb
Constant Summary collapse
- LEADING_CODES =
{ fg: 38, bg: 48 }.freeze
- SERIAL_CODE =
2
Instance Method Summary collapse
-
#initialize(fg: nil, bg: nil) ⇒ TwentyFourBitSequence
constructor
A new instance of TwentyFourBitSequence.
- #to_s ⇒ Object
Constructor Details
#initialize(fg: nil, bg: nil) ⇒ TwentyFourBitSequence
Returns a new instance of TwentyFourBitSequence.
7 8 9 10 |
# File 'lib/super_diff/csi/twenty_four_bit_sequence.rb', line 7 def initialize(fg: nil, bg: nil) @fg = fg @bg = bg end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/super_diff/csi/twenty_four_bit_sequence.rb', line 12 def to_s [sequence_for(:fg, fg), sequence_for(:bg, bg)].compact.join end |