Class: FastererCSV::NoConversion

Inherits:
Array
  • Object
show all
Defined in:
lib/fasterer_csv.rb

Instance Method Summary collapse

Instance Method Details

#<<(ch) ⇒ Object



263
264
265
# File 'lib/fasterer_csv.rb', line 263

def <<(ch)
  super(ch.chr)
end

#convert(as_string = false) ⇒ Object



267
268
269
270
271
272
273
274
275
# File 'lib/fasterer_csv.rb', line 267

def convert(as_string = false)
  if as_string
    join
  elsif empty?
    nil
  else
    join
  end
end