Class: ArcFurnace::Transform
- Defined in:
- lib/arc-furnace/transform.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Node
#error_handler, #node_id, #params
Instance Method Summary collapse
-
#initialize(source:) ⇒ Transform
constructor
A new instance of Transform.
- #transform(row) ⇒ Object
- #value ⇒ Object
Methods inherited from Source
#advance, #close, #empty?, #finalize, #prepare, #row
Constructor Details
#initialize(source:) ⇒ Transform
Returns a new instance of Transform.
8 9 10 |
# File 'lib/arc-furnace/transform.rb', line 8 def initialize(source:) @source = source end |
Instance Method Details
#transform(row) ⇒ Object
17 18 19 |
# File 'lib/arc-furnace/transform.rb', line 17 def transform(row) row end |
#value ⇒ Object
12 13 14 15 |
# File 'lib/arc-furnace/transform.rb', line 12 def value value = source.value.deep_dup transform(value) if value end |