Class: Transproc::Transformer
- Inherits:
-
Object
- Object
- Transproc::Transformer
- Extended by:
- ClassInterface, Deprecated::ClassInterface
- Defined in:
- lib/transproc/transformer.rb,
lib/transproc/transformer/dsl.rb,
lib/transproc/transformer/class_interface.rb,
lib/transproc/transformer/deprecated/class_interface.rb
Overview
Transfomer class for defining transprocs with a class DSL.
Defined Under Namespace
Modules: ClassInterface, Deprecated 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
Methods included from Deprecated::ClassInterface
define, inherited, method_missing, new, respond_to_missing?
Instance Attribute Details
#transproc ⇒ Object (readonly)
53 54 55 |
# File 'lib/transproc/transformer.rb', line 53 def transproc @transproc end |
Instance Method Details
#call(input) ⇒ mixed
Execute the transformation pipeline with the given input.
71 72 73 |
# File 'lib/transproc/transformer.rb', line 71 def call(input) transproc.call(input) end |