Module: Hakoy::FileIterator
- Extended by:
- FileIterator
- Included in:
- FileIterator
- Defined in:
- lib/hakoy/file_iterator.rb,
lib/hakoy/file_iterator/csv.rb
Defined Under Namespace
Modules: Csv
Instance Method Summary collapse
Instance Method Details
#call(file, opts = {}, &block) ⇒ Object
5 6 7 8 9 |
# File 'lib/hakoy/file_iterator.rb', line 5 def call(file, opts={}, &block) extname = File.extname(file) iterator = opts.fetch(:iterator) { find_iterator(extname) } iterator.(file, &block) end |