Method: Autotable::Helper#autotable

Defined in:
lib/autotable/helper.rb

#autotable(collection, options = {}) {|builder| ... } ⇒ Object

Yields:

  • (builder)


3
4
5
6
7
# File 'lib/autotable/helper.rb', line 3

def autotable(collection, options = {})
  builder = ::Autotable::Builder.new(collection, self, options)
  yield builder if block_given?
  builder.to_html
end