Class: Trestle::Table::SelectColumn

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

Defined Under Namespace

Classes: Renderer

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table, options = {}) ⇒ SelectColumn

Returns a new instance of SelectColumn.



6
7
8
# File 'lib/trestle/table/select_column.rb', line 6

def initialize(table, options={})
  @table, @options = table, options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end

#tableObject (readonly)

Returns the value of attribute table.



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

def table
  @table
end

Instance Method Details

#renderer(template) ⇒ Object



10
11
12
# File 'lib/trestle/table/select_column.rb', line 10

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