Class: BusinessCatalyst::CSV::ArrayTransformer

Inherits:
Transformer
  • Object
show all
Defined in:
lib/business_catalyst/csv/transformers.rb

Instance Attribute Summary

Attributes inherited from Transformer

#input

Instance Method Summary collapse

Methods inherited from Transformer

#initialize, transform

Constructor Details

This class inherits a constructor from BusinessCatalyst::CSV::Transformer

Instance Method Details

#transformObject



24
25
26
27
28
# File 'lib/business_catalyst/csv/transformers.rb', line 24

def transform
  if input
    Array(input).map {|s| s.to_s.gsub(";", " ") }.join(";")
  end
end