Module: Trestle::GridHelper
- Defined in:
- app/helpers/trestle/grid_helper.rb
Instance Method Summary collapse
Instance Method Details
#col(columns) ⇒ Object
7 8 9 |
# File 'app/helpers/trestle/grid_helper.rb', line 7 def col(columns) content_tag(:div, class: columns.map { |breakpoint, span| "col-#{breakpoint}-#{span}" }) { yield } end |
#divider ⇒ Object
11 12 13 |
# File 'app/helpers/trestle/grid_helper.rb', line 11 def divider content_tag(:hr) end |
#row ⇒ Object
3 4 5 |
# File 'app/helpers/trestle/grid_helper.rb', line 3 def row content_tag(:div, class: "row") { yield } end |