Class: Vanguard::Rule::Nullary::Attribute::Evaluator
- Defined in:
- lib/vanguard/rule/nullary/attribute.rb
Overview
Default evaluator
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Evaluator
Instance Method Summary collapse
-
#matcher ⇒ Matcher
private
Return matcher.
-
#valid? ⇒ true, false
private
Test if value is valid.
Methods inherited from Evaluator
#initialize, #value, #violation, #violations
Constructor Details
This class inherits a constructor from Vanguard::Evaluator
Instance Method Details
#matcher ⇒ Matcher
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return matcher
61 62 63 |
# File 'lib/vanguard/rule/nullary/attribute.rb', line 61 def matcher rule.matcher end |
#valid? ⇒ true, false
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Test if value is valid
50 51 52 |
# File 'lib/vanguard/rule/nullary/attribute.rb', line 50 def valid? matcher.matches?(value) end |