Module: Teckel::Operation::InstanceMethods

Defined in:
lib/teckel/operation.rb

Instance Method Summary collapse

Instance Method Details

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

Halt any further execution with an error value



395
396
397
# File 'lib/teckel/operation.rb', line 395

def fail!(*args)
  throw :failure, args
end

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

Halt any further execution with a output value



389
390
391
# File 'lib/teckel/operation.rb', line 389

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