Class: Roo::CSV
Instance Method Summary collapse
Instance Method Details
#each_row(options, &block) ⇒ Object
93 94 95 96 97 98 99 100 101 |
# File 'lib/libis/tools/extend/roo.rb', line 93 def each_row(, &block) if uri?(filename) each_row_using_tempdir(, &block) elsif is_stream?(filename_or_stream) ::CSV.new(filename_or_stream, **).each(&block) else ::CSV.foreach(filename, **, &block) end end |