Class: CSV::Parser::UnoptimizedStringIO
- Inherits:
-
Object
- Object
- CSV::Parser::UnoptimizedStringIO
- Defined in:
- lib/csv/parser.rb
Overview
:nodoc:
Instance Method Summary collapse
- #each_line(*args, &block) ⇒ Object
- #eof? ⇒ Boolean
- #gets(*args) ⇒ Object
-
#initialize(string) ⇒ UnoptimizedStringIO
constructor
A new instance of UnoptimizedStringIO.
Constructor Details
#initialize(string) ⇒ UnoptimizedStringIO
Returns a new instance of UnoptimizedStringIO.
828 829 830 |
# File 'lib/csv/parser.rb', line 828 def initialize(string) @io = StringIO.new(string, "rb:#{string.encoding}") end |
Instance Method Details
#each_line(*args, &block) ⇒ Object
836 837 838 |
# File 'lib/csv/parser.rb', line 836 def each_line(*args, &block) @io.each_line(*args, &block) end |
#eof? ⇒ Boolean
840 841 842 |
# File 'lib/csv/parser.rb', line 840 def eof? @io.eof? end |
#gets(*args) ⇒ Object
832 833 834 |
# File 'lib/csv/parser.rb', line 832 def gets(*args) @io.gets(*args) end |