Class: CSV::Parser::UnoptimizedStringIO

Inherits:
Object
  • Object
show all
Defined in:
lib/csv/parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ UnoptimizedStringIO

Returns a new instance of UnoptimizedStringIO.



664
665
666
# File 'lib/csv/parser.rb', line 664

def initialize(string)
  @io = StringIO.new(string)
end

Instance Method Details

#each_line(*args, &block) ⇒ Object



672
673
674
# File 'lib/csv/parser.rb', line 672

def each_line(*args, &block)
  @io.each_line(*args, &block)
end

#eof?Boolean

Returns:

  • (Boolean)


676
677
678
# File 'lib/csv/parser.rb', line 676

def eof?
  @io.eof?
end

#gets(*args) ⇒ Object



668
669
670
# File 'lib/csv/parser.rb', line 668

def gets(*args)
  @io.gets(*args)
end