Method: TableHelp::AttributesTableFor#initialize

Defined in:
lib/table_help/attributes_table_for.rb

#initialize(resource, context, options = {}) ⇒ AttributesTableFor

Returns a new instance of AttributesTableFor.



6
7
8
9
10
11
# File 'lib/table_help/attributes_table_for.rb', line 6

def initialize(resource, context, options = {})
  @resource = resource
  @context  = context
  @options  = default_options.merge(options)
  @rows     = []
end