Class: Floe::Workflow::ChoiceRule::Or

Inherits:
Floe::Workflow::ChoiceRule show all
Defined in:
lib/floe/workflow/choice_rule/or.rb

Instance Attribute Summary

Attributes inherited from Floe::Workflow::ChoiceRule

#children, #name, #next, #payload

Instance Method Summary collapse

Methods inherited from Floe::Workflow::ChoiceRule

build, build_children, #initialize

Methods included from ValidationMixin

included, #invalid_field_error!, #missing_field_error!, #parser_error!, #runtime_field_error!, #workflow_state?, #wrap_parser_error

Constructor Details

This class inherits a constructor from Floe::Workflow::ChoiceRule

Instance Method Details

#true?(context, input) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/floe/workflow/choice_rule/or.rb', line 7

def true?(context, input)
  children.any? { |choice| choice.true?(context, input) }
end