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.



529
530
531
# File 'lib/csv/parser.rb', line 529

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

Instance Method Details

#eof?Boolean

Returns:

  • (Boolean)


537
538
539
# File 'lib/csv/parser.rb', line 537

def eof?
  @io.eof?
end

#gets(*args) ⇒ Object



533
534
535
# File 'lib/csv/parser.rb', line 533

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