Class: CSV::Parser::UnoptimizedStringIO
- Inherits:
-
Object
- Object
- CSV::Parser::UnoptimizedStringIO
- Defined in:
- lib/csv/parser.rb
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.
709 710 711 |
# File 'lib/csv/parser.rb', line 709 def initialize(string) @io = StringIO.new(string) end |
Instance Method Details
#each_line(*args, &block) ⇒ Object
717 718 719 |
# File 'lib/csv/parser.rb', line 717 def each_line(*args, &block) @io.each_line(*args, &block) end |
#eof? ⇒ Boolean
721 722 723 |
# File 'lib/csv/parser.rb', line 721 def eof? @io.eof? end |
#gets(*args) ⇒ Object
713 714 715 |
# File 'lib/csv/parser.rb', line 713 def gets(*args) @io.gets(*args) end |