Class: TableFor::Base
- Inherits:
-
Blocks::Base
- Object
- Blocks::Base
- TableFor::Base
- Defined in:
- lib/table_for/base.rb
Instance Attribute Summary collapse
-
#current_record ⇒ Object
(also: #current_row)
Returns the value of attribute current_record.
Instance Method Summary collapse
Instance Attribute Details
#current_record ⇒ Object Also known as: current_row
Returns the value of attribute current_record.
8 9 10 |
# File 'lib/table_for/base.rb', line 8 def current_record @current_record end |
Instance Method Details
#header(name, options = {}, &block) ⇒ Object
11 12 13 |
# File 'lib/table_for/base.rb', line 11 def header(name, ={}, &block) define("#{name.to_s}_header", , &block) end |
#set_current_record(record) ⇒ Object
15 16 17 |
# File 'lib/table_for/base.rb', line 15 def set_current_record(record) self.current_record = record end |