Class: Trestle::Table::Row
- Inherits:
-
Object
- Object
- Trestle::Table::Row
- Defined in:
- lib/trestle/table/row.rb
Defined Under Namespace
Classes: Renderer
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}, &block) ⇒ Row
constructor
A new instance of Row.
- #renderer(table:, template:) ⇒ Object
Constructor Details
#initialize(options = {}, &block) ⇒ Row
Returns a new instance of Row.
6 7 8 9 |
# File 'lib/trestle/table/row.rb', line 6 def initialize(={}, &block) @options = @block = block if block_given? end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
4 5 6 |
# File 'lib/trestle/table/row.rb', line 4 def block @block end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/trestle/table/row.rb', line 4 def @options end |