Class: Dry::Transformer::Pipe
- Inherits:
-
Object
- Object
- Dry::Transformer::Pipe
- Extended by:
- ClassInterface
- Defined in:
- lib/dry/transformer/pipe.rb,
lib/dry/transformer/pipe/dsl.rb,
lib/dry/transformer/pipe/class_interface.rb
Overview
Pipe class for defining transprocs with a class DSL.
Defined Under Namespace
Modules: ClassInterface Classes: DSL
Instance Attribute Summary collapse
- #transproc ⇒ Object readonly
Attributes included from ClassInterface
Instance Method Summary collapse
-
#call(input) ⇒ mixed
Execute the transformation pipeline with the given input.
Methods included from ClassInterface
[], container, define!, import, inherited, new, t
Instance Attribute Details
#transproc ⇒ Object (readonly)
50 51 52 |
# File 'lib/dry/transformer/pipe.rb', line 50 def transproc @transproc end |
Instance Method Details
#call(input) ⇒ mixed
Execute the transformation pipeline with the given input.
68 69 70 |
# File 'lib/dry/transformer/pipe.rb', line 68 def call(input) transproc.call(input) end |