Module: HashToCsv

Defined in:
lib/hash_to_csv.rb,
lib/hash_to_csv/hash_to_csv.rb

Defined Under Namespace

Classes: HashToCsv

Class Method Summary collapse

Class Method Details

.to_csv(hashes, options = {}, &block) ⇒ Object



6
7
8
9
10
# File 'lib/hash_to_csv.rb', line 6

def self.to_csv(hashes, options={}, &block)
  hash_flattener = HashFlattener::HashFlattener.new
  hash_to_csv = HashToCsv.new hash_flattener
  hash_to_csv.to_csv hashes, options, &block
end