Class: Vanguard::Rule::Nullary
- Inherits:
-
Vanguard::Rule
- Object
- Vanguard::Rule
- Vanguard::Rule::Nullary
- Defined in:
- lib/vanguard/rule/nullary.rb,
lib/vanguard/rule/nullary/attribute.rb,
lib/vanguard/rule/nullary/confirmation.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
Overview
Abstract base class for nullary rules
Direct Known Subclasses
Defined Under Namespace
Classes: Attribute, Builder, Confirmation, Proxy
Class Method Summary collapse
-
.builder ⇒ Class:Builder
private
Return builder for nullary rule.
Instance Method Summary collapse
-
#type ⇒ Symbol
private
Return symbolic type of rule.
Methods inherited from Vanguard::Rule
#evaluate, #evaluator, #violations
Class Method Details
.builder ⇒ Class:Builder
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 builder for nullary rule
27 28 29 |
# File 'lib/vanguard/rule/nullary.rb', line 27 def self.builder self::Builder end |
Instance Method Details
#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 of rule
37 38 39 |
# File 'lib/vanguard/rule/nullary.rb', line 37 def type self.class::TYPE end |