Class: BusinessCatalyst::CSV::ArrayTransformer
- Inherits:
-
Transformer
- Object
- Transformer
- BusinessCatalyst::CSV::ArrayTransformer
- Defined in:
- lib/business_catalyst/csv/transformers.rb
Instance Attribute Summary
Attributes inherited from Transformer
Instance Method Summary collapse
Methods inherited from Transformer
Constructor Details
This class inherits a constructor from BusinessCatalyst::CSV::Transformer
Instance Method Details
#transform ⇒ Object
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 |