Class: LIVR::Rule
- Inherits:
-
Object
- Object
- LIVR::Rule
- Defined in:
- lib/livr/rule.rb
Direct Known Subclasses
LIVR::Rules::Common::AnyObject, LIVR::Rules::Common::NotEmpty, LIVR::Rules::Common::NotEmptyList, LIVR::Rules::Common::Required, LIVR::Rules::Meta::ListOf, LIVR::Rules::Meta::ListOfDifferentObjects, LIVR::Rules::Meta::ListOfObjects, LIVR::Rules::Meta::NestedObject, LIVR::Rules::Meta::Or, LIVR::Rules::Meta::VariableObject, LIVR::Rules::Modifiers::Default, LIVR::Rules::Modifiers::LeaveOnly, LIVR::Rules::Modifiers::Remove, LIVR::Rules::Modifiers::ToLc, LIVR::Rules::Modifiers::ToUc, LIVR::Rules::Modifiers::Trim, LIVR::Rules::Numeric::Decimal, LIVR::Rules::Numeric::Integer, LIVR::Rules::Numeric::MaxNumber, LIVR::Rules::Numeric::MinNumber, LIVR::Rules::Numeric::NumberBetween, LIVR::Rules::Numeric::PositiveDecimal, LIVR::Rules::Numeric::PositiveInteger, LIVR::Rules::Special::Email, LIVR::Rules::Special::EqualToField, LIVR::Rules::Special::IsoDate, LIVR::Rules::Special::Url, LIVR::Rules::String::Eq, LIVR::Rules::String::LengthBetween, LIVR::Rules::String::LengthEqual, LIVR::Rules::String::Like, LIVR::Rules::String::MaxLength, LIVR::Rules::String::MinLength, LIVR::Rules::String::OneOf, LIVR::Rules::String::String
Instance Method Summary collapse
- #call(value, user_data, field_results) ⇒ Object
-
#initialize ⇒ Rule
constructor
A new instance of Rule.
Constructor Details
#initialize ⇒ Rule
Returns a new instance of Rule.
4 5 |
# File 'lib/livr/rule.rb', line 4 def initialize(*) end |
Instance Method Details
#call(value, user_data, field_results) ⇒ Object
7 8 9 |
# File 'lib/livr/rule.rb', line 7 def call(value, user_data, field_results) raise NotImplementedError end |