Method: TableHelp::TableFor#initialize
- Defined in:
- lib/table_help/table_for.rb
#initialize(collection, context, options = {}) ⇒ TableFor
Returns a new instance of TableFor.
8 9 10 11 12 13 14 15 |
# File 'lib/table_help/table_for.rb', line 8 def initialize(collection, context, = {}) @collection = collection @context = context = .merge() @columns = [] @strategies = [] @q = .delete(:q) end |