Class: Vanguard::Rule::Nullary::Attribute
- Inherits:
-
Vanguard::Rule::Nullary
- Object
- Vanguard::Rule
- Vanguard::Rule::Nullary
- Vanguard::Rule::Nullary::Attribute
- Defined in:
- lib/vanguard/rule/nullary/attribute.rb,
lib/vanguard/rule/nullary/attribute/format.rb,
lib/vanguard/rule/nullary/attribute/length.rb,
lib/vanguard/rule/nullary/attribute/absence.rb,
lib/vanguard/rule/nullary/attribute/presence.rb,
lib/vanguard/rule/nullary/attribute/inclusion.rb,
lib/vanguard/rule/nullary/attribute/predicate.rb,
lib/vanguard/rule/nullary/attribute/primitive.rb
Defined Under Namespace
Classes: Absence, Evaluator, Format, Inclusion, Length, Predicate, Presence, Primitive
Instance Attribute Summary collapse
-
#attribute_name ⇒ Symbol
readonly
private
Return attribute name.
-
#matcher ⇒ Matcher
readonly
private
Return matcher.
Instance Method Summary collapse
-
#initialize(attribute_name, matcher) ⇒ undefined
constructor
private
Initialize object.
Methods inherited from Vanguard::Rule::Nullary
Methods inherited from Vanguard::Rule
#evaluate, #evaluator, #violations
Constructor Details
#initialize(attribute_name, matcher) ⇒ undefined
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.
Initialize object
34 35 36 |
# File 'lib/vanguard/rule/nullary/attribute.rb', line 34 def initialize(attribute_name, matcher) @attribute_name, @matcher = attribute_name, matcher end |
Instance Attribute Details
#attribute_name ⇒ Symbol (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 attribute name
15 16 17 |
# File 'lib/vanguard/rule/nullary/attribute.rb', line 15 def attribute_name @attribute_name end |
#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
23 24 25 |
# File 'lib/vanguard/rule/nullary/attribute.rb', line 23 def matcher @matcher end |