Class: CSVRb::PlainBuilder

Inherits:
StreamBuilder show all
Defined in:
lib/csv_rb/plain_builder.rb

Instance Method Summary collapse

Methods inherited from StreamBuilder

#<<, #stream, #y

Constructor Details

#initializePlainBuilder

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

#closeObject



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_sObject



25
26
27
# File 'lib/csv_rb/plain_builder.rb', line 25

def to_s
  value
end

#to_strObject



21
22
23
# File 'lib/csv_rb/plain_builder.rb', line 21

def to_str
  to_s
end

#valueObject



9
10
11
# File 'lib/csv_rb/plain_builder.rb', line 9

def value
  y
end