Class: NattyUI::Features::Table::Cell

Inherits:
Object
  • Object
show all
Defined in:
lib/natty-ui/wrapper/table.rb

Instance Attribute Summary collapse

Instance Attribute Details

#align:left, ...

Returns text alignment.

Returns:

  • (:left, :right, :center)

    text alignment



329
# File 'lib/natty-ui/wrapper/table.rb', line 329

def align = ALIGNMENT[@align]

#styleString?

Returns text style; see Ansi.try_convert.

Returns:



333
334
335
# File 'lib/natty-ui/wrapper/table.rb', line 333

def style
  @style_ ||= Ansi.try_convert(@style)
end

#valueString?

Returns text value of the cell.

Returns:

  • (String, nil)

    text value of the cell



313
314
315
# File 'lib/natty-ui/wrapper/table.rb', line 313

def value
  @value
end