Class: Anodator::Validator::BlankValidator
- Defined in:
- lib/anodator/validator/blank_validator.rb
Overview
blank validator
This is the Validator to validate whether the value is not present.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#allow_blank?, #argument_value_at, default_options, #description, #initialize, #target_value, #to_s, #valid?, valid_option_keys, #validate_configuration, values, values=
Constructor Details
This class inherits a constructor from Anodator::Validator::Base
Instance Method Details
#validate ⇒ Object
9 10 11 |
# File 'lib/anodator/validator/blank_validator.rb', line 9 def validate return target_value.split(//).size.zero? end |