Class: Vanguard::Rule::Guard
- Inherits:
-
Vanguard::Rule
- Object
- Vanguard::Rule
- Vanguard::Rule::Guard
- Defined in:
- lib/vanguard/rule/guard.rb
Defined Under Namespace
Classes: Evaluator
Instance Attribute Summary collapse
-
#matcher ⇒ Matcher
readonly
private
Return matcher.
-
#operand ⇒ Rule
readonly
private
Return operand.
Instance Method Summary collapse
-
#attribute_name ⇒ Symbol
private
Return attribute name.
-
#type ⇒ Symbol
private
Return symbolic type.
Methods inherited from Vanguard::Rule
#evaluate, #evaluator, #violations
Instance Attribute Details
#matcher ⇒ Matcher (readonly)
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
10 11 12 |
# File 'lib/vanguard/rule/guard.rb', line 10 def matcher @matcher end |
#operand ⇒ Rule (readonly)
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 operand
18 19 20 |
# File 'lib/vanguard/rule/guard.rb', line 18 def operand @operand end |
Instance Method Details
#attribute_name ⇒ Symbol
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 attribute name
26 27 28 |
# File 'lib/vanguard/rule/guard.rb', line 26 def attribute_name operand.attribute_name end |
#type ⇒ Symbol
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 symbolic type
37 38 39 |
# File 'lib/vanguard/rule/guard.rb', line 37 def type operand.type end |