Class: Floe::Workflow::ChoiceRule::And
- Inherits:
-
Floe::Workflow::ChoiceRule
- Object
- Floe::Workflow::ChoiceRule
- Floe::Workflow::ChoiceRule::And
- Defined in:
- lib/floe/workflow/choice_rule/and.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
7 8 9 |
# File 'lib/floe/workflow/choice_rule/and.rb', line 7 def true?(context, input) children.all? { |choice| choice.true?(context, input) } end |