Module: DataShift::Transformation
- Defined in:
- lib/datashift/transformation/remove.rb,
lib/datashift/transformation/factory.rb
Defined Under Namespace
Class Method Summary collapse
-
.factory(locale = :en) ⇒ Object
Yields a singleton instance of Transformations::Factory so you can specify additional transforms in .rb config If passed an optional locale, rules for other languages can be specified.
Class Method Details
.factory(locale = :en) ⇒ Object
Yields a singleton instance of Transformations::Factory so you can specify additional transforms in .rb config If passed an optional locale, rules for other languages can be specified. If not specified, defaults to :en
.
Only rules for English are provided.
55 56 57 58 59 60 61 |
# File 'lib/datashift/transformation/factory.rb', line 55 def factory(locale = :en) if block_given? yield Factory.instance(locale) else Factory.instance(locale) end end |