Class: SmartCore::Operation::Result::Failure

Inherits:
Error
  • Object
show all
Defined in:
lib/smart_core/operation/result/failure.rb

Overview

Since:

  • 0.1.0

Instance Attribute Summary

Attributes inherited from Error

#errors

Instance Method Summary collapse

Methods inherited from Error

#each_error, #error?, #error_codes, #error_context

Methods inherited from Basic

#callback?, #fatal?, #initialize, #success?

Constructor Details

This class inherits a constructor from SmartCore::Operation::Result::Basic

Instance Method Details

#failure? {|SmartCore::Operation::Result::Failure| ... } ⇒ Boolean

Yields:

Returns:

  • (Boolean)

Since:

  • 0.1.0



11
12
13
# File 'lib/smart_core/operation/result/failure.rb', line 11

def failure?
  true.tap { yield(self) if block_given? }
end