Class: Roo::CSV

Inherits:
Object show all
Defined in:
lib/libis/tools/extend/roo.rb

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(options, &block)
  if uri?(filename)
    each_row_using_tempdir(options, &block)
  elsif is_stream?(filename_or_stream)
    ::CSV.new(filename_or_stream, **options).each(&block)
  else
    ::CSV.foreach(filename, **options, &block)
  end
end