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)
  (:div, class: columns.map { |breakpoint, span| "col-#{breakpoint}-#{span}" }) { yield }
end

#dividerObject



11
12
13
# File 'app/helpers/trestle/grid_helper.rb', line 11

def divider
  (:hr)
end

#rowObject



3
4
5
# File 'app/helpers/trestle/grid_helper.rb', line 3

def row
  (:div, class: "row") { yield }
end