class CsvReader::ParserTab
Public Instance Methods
parse( data, **kwargs, &block )
click to toggle source
# File lib/csvreader/parser_tab.rb, line 7 def parse( data, **kwargs, &block ) ## note: kwargs NOT used for now (but required for "protocol/interface" by other parsers) ## note: input: required each_line (string or io/file for example) ## assume data is a string or io/file handle tab = TabReader.new( data ) if block_given? tab.each( &block ) else tab.to_a end end