Class: Tabulo::Cell

Inherits:
Object
  • Object
show all
Defined in:
lib/tabulo/cell.rb

Overview

Represents a single cell within the body of a Table.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

Returns the underlying value for this Cell.

Returns:

  • the underlying value for this Cell



11
12
13
# File 'lib/tabulo/cell.rb', line 11

def value
  @value
end

Instance Method Details

#formatted_contentString

Returns the content of the Cell, after applying the formatter for this Column (but without applying any wrapping or the styler).

Returns:

  • (String)

    the content of the Cell, after applying the formatter for this Column (but without applying any wrapping or the styler).



57
58
59
# File 'lib/tabulo/cell.rb', line 57

def formatted_content
  @formatted_content ||= apply_formatter
end