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.



825
826
827
# File 'lib/csv/parser.rb', line 825

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

Instance Method Details

#each_line(*args, &block) ⇒ Object



833
834
835
# File 'lib/csv/parser.rb', line 833

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

#eof?Boolean

Returns:

  • (Boolean)


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

def eof?
  @io.eof?
end

#gets(*args) ⇒ Object



829
830
831
# File 'lib/csv/parser.rb', line 829

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