Class: Tablette::Body

Inherits:
Section show all
Defined in:
lib/tablette/sections.rb

Instance Attribute Summary

Attributes inherited from Element

#helper, #renderer

Instance Method Summary collapse

Methods inherited from Element

#element_to_html, #initialize, #method_missing, #respond_to_missing?, #to_html

Constructor Details

This class inherits a constructor from Tablette::Element

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Tablette::Element

Instance Method Details

#columns_for_section(args) ⇒ Object



29
30
31
32
33
34
# File 'lib/tablette/sections.rb', line 29

def columns_for_section(args)
  collection, resource_class = args
  return 0 if collection.empty?

  super([collection.first, 0])
end

#update_auto_colspan!(columns, args) ⇒ Object



36
37
38
# File 'lib/tablette/sections.rb', line 36

def update_auto_colspan!(columns, args)

end