Class: Vanguard::Rule::Nullary::Attribute::Inclusion::Acceptance

Inherits:
Vanguard::Rule::Nullary::Attribute::Inclusion show all
Defined in:
lib/vanguard/rule/nullary/attribute/inclusion.rb

Overview

Rule that tests for acceptance

Defined Under Namespace

Classes: Builder

Constant Summary collapse

TYPE =
:acceptance
DEFAULT_ACCEPTED_VALUES =
[ '1', 1, 'true', true, 't' ].to_set.deep_freeze

Instance Attribute Summary

Attributes inherited from Vanguard::Rule::Nullary::Attribute

#attribute_name, #matcher

Method Summary

Methods inherited from Vanguard::Rule::Nullary::Attribute

#initialize

Methods inherited from Vanguard::Rule::Nullary

builder, #type

Methods inherited from Vanguard::Rule

#evaluate, #evaluator, #violations

Constructor Details

This class inherits a constructor from Vanguard::Rule::Nullary::Attribute