Module: Teckel::Operation::InstanceMethods
- Defined in:
- lib/teckel/operation.rb
Instance Attribute Summary collapse
-
#settings() ⇒ Class?
readonly
When executed with settings, an instance of the configured settings class.
Instance Method Summary collapse
-
#fail!(*args) ⇒ Object
protected
Halt any further execution with an error value.
-
#success!(*args) ⇒ Object
protected
Halt any further execution with a output value.
Instance Attribute Details
#settings() ⇒ Class? (readonly)
Returns When executed with settings, an instance of the configured settings class. Otherwise nil.
|
|
# File 'lib/teckel/operation.rb', line 156
|
Instance Method Details
#fail!(*args) ⇒ Object (protected)
Halt any further execution with an error value
174 175 176 |
# File 'lib/teckel/operation.rb', line 174 def fail!(*args) throw :failure, args end |
#success!(*args) ⇒ Object (protected)
Halt any further execution with a output value
166 167 168 |
# File 'lib/teckel/operation.rb', line 166 def success!(*args) throw :success, args end |