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.



505
506
507
# File 'lib/csv/parser.rb', line 505

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

Instance Method Details

#eof?Boolean

Returns:

  • (Boolean)


513
514
515
# File 'lib/csv/parser.rb', line 513

def eof?
  @io.eof?
end

#gets(*args) ⇒ Object



509
510
511
# File 'lib/csv/parser.rb', line 509

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