Class: ServiceStack::Pipeline
- Inherits:
-
Object
- Object
- ServiceStack::Pipeline
- Defined in:
- lib/service_stack/pipeline.rb
Constant Summary collapse
- PIPES_MAP =
{ uppercase: Pipes::UppercasePipe }.freeze
Instance Method Summary collapse
-
#initialize(pipes) ⇒ Pipeline
constructor
A new instance of Pipeline.
- #transform(value) ⇒ Object
Constructor Details
Instance Method Details
#transform(value) ⇒ Object
13 14 15 16 17 |
# File 'lib/service_stack/pipeline.rb', line 13 def transform(value) @pipes.reduce(value) do |new_value, pipe| pipe.transform(new_value) end end |