Class: FlowEngine::Rules::Base
- Inherits:
-
Object
- Object
- FlowEngine::Rules::Base
- Defined in:
- lib/flowengine/rules/base.rb
Overview
Instance Method Summary collapse
-
#evaluate(_answers) ⇒ Boolean
Evaluates the rule against the current answer context.
-
#to_s ⇒ String
Human-readable representation (e.g. for graph labels).
Instance Method Details
#evaluate(_answers) ⇒ Boolean
Evaluates the rule against the current answer context.
12 13 14 |
# File 'lib/flowengine/rules/base.rb', line 12 def evaluate(_answers) raise NotImplementedError, "#{self.class}#evaluate must be implemented" end |
#to_s ⇒ String
Human-readable representation (e.g. for graph labels).
19 20 21 |
# File 'lib/flowengine/rules/base.rb', line 19 def to_s raise NotImplementedError, "#{self.class}#to_s must be implemented" end |