Module: WorkflowTemplate::Outcome::Handler::Error
- Defined in:
- lib/workflow_template/outcome/handler.rb
Class Method Summary collapse
Class Method Details
.default?(matcher: nil) ⇒ Boolean
94 95 96 |
# File 'lib/workflow_template/outcome/handler.rb', line 94 def self.default?(matcher: nil) matcher.nil? end |
.run_handler?(final_state, matcher: nil) ⇒ Boolean
98 99 100 101 102 |
# File 'lib/workflow_template/outcome/handler.rb', line 98 def self.run_handler?(final_state, matcher: nil) # rubocop:disable Style/CaseEquality matcher.nil? || matcher === final_state.error # rubocop:enable Style/CaseEquality end |