Class: Trestle::Table::Row

Inherits:
Object
  • Object
show all
Defined in:
lib/trestle/table/row.rb

Defined Under Namespace

Classes: Renderer

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options={}, &block)
  @options = options
  @block = block if block_given?
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



4
5
6
# File 'lib/trestle/table/row.rb', line 4

def block
  @block
end

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/trestle/table/row.rb', line 4

def options
  @options
end

Instance Method Details

#renderer(table:, template:) ⇒ Object



11
12
13
# File 'lib/trestle/table/row.rb', line 11

def renderer(table:, template:)
  Renderer.new(self, table: table, template: template)
end