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.



819
820
821
# File 'lib/csv/parser.rb', line 819

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

Instance Method Details

#each_line(*args, &block) ⇒ Object



827
828
829
# File 'lib/csv/parser.rb', line 827

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

#eof?Boolean

Returns:

  • (Boolean)


831
832
833
# File 'lib/csv/parser.rb', line 831

def eof?
  @io.eof?
end

#gets(*args) ⇒ Object



823
824
825
# File 'lib/csv/parser.rb', line 823

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