Class: CSV::Parser::UnoptimizedStringIO

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

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ UnoptimizedStringIO

Returns a new instance of UnoptimizedStringIO.



838
839
840
# File 'lib/csv/parser.rb', line 838

def initialize(string)
  @io = StringIO.new(string, "rb:#{string.encoding}")
end

Instance Method Details

#each_line(*args, &block) ⇒ Object



846
847
848
# File 'lib/csv/parser.rb', line 846

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

#eof?Boolean

Returns:

  • (Boolean)


850
851
852
# File 'lib/csv/parser.rb', line 850

def eof?
  @io.eof?
end

#gets(*args) ⇒ Object



842
843
844
# File 'lib/csv/parser.rb', line 842

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