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


9
10
11
# File 'lib/tabulo/cell.rb', line 9

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).


53
54
55
# File 'lib/tabulo/cell.rb', line 53

def formatted_content
  @formatted_content ||= apply_formatter
end