Module: Teckel::Operation::InstanceMethods

Defined in:
lib/teckel/operation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#settings()Class? (readonly)

Returns When executed with settings, an instance of the configured settings class. Otherwise nil.

Returns:

  • (Class, nil)

    When executed with settings, an instance of the configured settings class. Otherwise nil

See Also:

  • ClassMethods#settings


# File 'lib/teckel/operation.rb', line 156


Instance Method Details

#fail!(*args) ⇒ Object (protected)

Halt any further execution with an error value

Returns:

  • a thing matching your error definition



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

Returns:

  • a thing matching your output definition



166
167
168
# File 'lib/teckel/operation.rb', line 166

def success!(*args)
  throw :success, args
end