Class: TuiTui::Cell
- Inherits:
-
Data
- Object
- Data
- TuiTui::Cell
- Defined in:
- lib/tui_tui/cell.rb
Overview
One terminal cell; a nil char marks the continuation cell of a wide glyph.
Constant Summary collapse
- BLANK =
Cell.new(char: " ", style: nil)
Instance Attribute Summary collapse
-
#char ⇒ Object
readonly
Returns the value of attribute char.
-
#style ⇒ Object
readonly
Returns the value of attribute style.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#char ⇒ Object (readonly)
Returns the value of attribute char
5 6 7 |
# File 'lib/tui_tui/cell.rb', line 5 def char @char end |
#style ⇒ Object (readonly)
Returns the value of attribute style
5 6 7 |
# File 'lib/tui_tui/cell.rb', line 5 def style @style end |
Class Method Details
.blank ⇒ Object
6 |
# File 'lib/tui_tui/cell.rb', line 6 def self.blank = BLANK |
Instance Method Details
#continuation? ⇒ Boolean
7 |
# File 'lib/tui_tui/cell.rb', line 7 def continuation? = char.nil? |