Module: CsvMadness::GemAPI

Defined in:
lib/csv_madness/gem_api.rb

Instance Method Summary collapse

Instance Method Details

#build(objects, &block) ⇒ Object



7
8
9
10
# File 'lib/csv_madness/gem_api.rb', line 7

def build( objects, &block )
  builder = CsvMadness::Builder.new(&block)
  builder.build( objects )
end

#load(csv, opts = {}) ⇒ Object



3
4
5
# File 'lib/csv_madness/gem_api.rb', line 3

def load( csv, opts = {} )
  CsvMadness::Sheet.from( csv, opts )
end