Class: SmartCore::Operation::Fatal
- Defined in:
- lib/smart_core/operation/fatal.rb
Overview
Instance Attribute Summary
Attributes inherited from Result
#__result_attributes__, #__result_options__
Instance Method Summary collapse
Methods inherited from Failure
Methods inherited from Result
#callback?, #failure?, #initialize, #success?
Constructor Details
This class inherits a constructor from SmartCore::Operation::Failure
Instance Method Details
#exception ⇒ SmartCore::Operation::FatalError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'lib/smart_core/operation/fatal.rb', line 10 def exception SmartCore::Operation::FatalError.new(self) end |
#fatal? ⇒ Boolean
18 19 20 |
# File 'lib/smart_core/operation/fatal.rb', line 18 def fatal? true.tap { yield(self) if block_given? } end |