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.
A Teckel::Result given as input will get unwrapped, so that the original value gets passed to your Operation code.
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.included(receiver) ⇒ Object
65 66 67 68 |
# File 'lib/teckel/operation/results.rb', line 65 def self.included(receiver) receiver.send :include, Teckel::Operation unless Teckel::Operation >= receiver receiver.send :include, InstanceMethods end |