Class: TuiTui::Cell

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#charObject (readonly)

Returns the value of attribute char

Returns:

  • (Object)

    the current value of char



5
6
7
# File 'lib/tui_tui/cell.rb', line 5

def char
  @char
end

#styleObject (readonly)

Returns the value of attribute style

Returns:

  • (Object)

    the current value of style



5
6
7
# File 'lib/tui_tui/cell.rb', line 5

def style
  @style
end

Class Method Details

.blankObject



6
# File 'lib/tui_tui/cell.rb', line 6

def self.blank = BLANK

Instance Method Details

#continuation?Boolean

Returns:

  • (Boolean)


7
# File 'lib/tui_tui/cell.rb', line 7

def continuation? = char.nil?