Class: CSVRb::PlainBuilder
- Inherits:
-
StreamBuilder
- Object
- StreamBuilder
- CSVRb::PlainBuilder
- Defined in:
- lib/csv_rb/plain_builder.rb
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize ⇒ PlainBuilder
constructor
A new instance of PlainBuilder.
- #set(complete_value) ⇒ Object
- #to_s ⇒ Object
- #to_str ⇒ Object
- #value ⇒ Object
Methods inherited from StreamBuilder
Constructor Details
#initialize ⇒ PlainBuilder
Returns a new instance of PlainBuilder.
5 6 7 |
# File 'lib/csv_rb/plain_builder.rb', line 5 def initialize(*) super(+"", false) end |
Instance Method Details
#close ⇒ Object
17 18 19 |
# File 'lib/csv_rb/plain_builder.rb', line 17 def close to_s end |
#set(complete_value) ⇒ Object
13 14 15 |
# File 'lib/csv_rb/plain_builder.rb', line 13 def set(complete_value) @enumerator = complete_value || +"" end |
#to_s ⇒ Object
25 26 27 |
# File 'lib/csv_rb/plain_builder.rb', line 25 def to_s value end |
#to_str ⇒ Object
21 22 23 |
# File 'lib/csv_rb/plain_builder.rb', line 21 def to_str to_s end |
#value ⇒ Object
9 10 11 |
# File 'lib/csv_rb/plain_builder.rb', line 9 def value y end |