Class: Kiss::Form::Section
Instance Method Summary collapse
- #html ⇒ Object
-
#initialize(form = nil) ⇒ Section
constructor
A new instance of Section.
Constructor Details
#initialize(form = nil) ⇒ Section
77 78 79 80 |
# File 'lib/kiss/form.rb', line 77 def initialize(form = nil) @_form = form @_columns = [Column.new(form)] end |
Instance Method Details
#html ⇒ Object
82 83 84 85 86 87 88 89 90 |
# File 'lib/kiss/form.rb', line 82 def html [ '<tr><td>', '<table class="kiss_form_section"><tbody><tr>', columns.map {|column| column.html}.join, '</tr></tbody></table>', '</td></tr>', ].join end |