class GridCol
Attributes
object[RW]
Public Class Methods
new(object, binding:;)
click to toggle source
Calls superclass method
RKit::Grid::Base::new
# File lib/r_kit/grid/base/grid_col.rb, line 4 def initialize object, binding:; @object = object super binding end
Public Instance Methods
_attributes()
click to toggle source
# File lib/r_kit/grid/base/grid_col.rb, line 22 def _attributes _binding.col_attributes(object).except("tag") end
_tag()
click to toggle source
# File lib/r_kit/grid/base/grid_col.rb, line 18 def _tag _binding.col_attributes(object)["tag"] || :div end
capture()
click to toggle source
# File lib/r_kit/grid/base/grid_col.rb, line 26 def capture _binding.capture object end
required_bindings()
click to toggle source
# File lib/r_kit/grid/base/grid_col.rb, line 9 def required_bindings { col_attributes: { class: proc{ :"grid-col-#{ _binding.col_size }" }.call } } end