Module: Teckel::Operation::Results
- Defined in:
- lib/teckel/operation/results.rb
Overview
Works just like Teckel::Operation, but wraps output and error into a Teckel::Result.
If a Teckel::Result is given as input, it will get unwrapped, so that the original Result#value gets passed to your Operation code.
Defined Under Namespace
Classes: Runner
Class Method Summary collapse
Class Method Details
.included(receiver) ⇒ Object
66 67 68 69 |
# File 'lib/teckel/operation/results.rb', line 66 def self.included(receiver) receiver.send :include, Teckel::Operation unless Teckel::Operation >= receiver receiver.send :runner, Runner end |