Class: Vanguard::Rule::Nullary

Inherits:
Vanguard::Rule show all
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

Attribute, Confirmation

Defined Under Namespace

Classes: Attribute, Builder, Confirmation, Proxy

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Vanguard::Rule

#evaluate, #evaluator, #violations

Class Method Details

.builderClass: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

Returns:

  • (Class:Builder)


27
28
29
# File 'lib/vanguard/rule/nullary.rb', line 27

def self.builder
  self::Builder
end

Instance Method Details

#typeSymbol

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

Returns:

  • (Symbol)


37
38
39
# File 'lib/vanguard/rule/nullary.rb', line 37

def type
  self.class::TYPE
end