Class: Valigator::CSV::FieldValidators::Base
- Inherits:
-
Object
- Object
- Valigator::CSV::FieldValidators::Base
- Defined in:
- lib/valigator/csv/field_validators/base.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #error_message ⇒ Object
- #error_type ⇒ Object
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
- #valid?(value) ⇒ Boolean
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
7 8 9 |
# File 'lib/valigator/csv/field_validators/base.rb', line 7 def initialize(={}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/valigator/csv/field_validators/base.rb', line 5 def @options end |
Instance Method Details
#==(other) ⇒ Object
31 32 33 |
# File 'lib/valigator/csv/field_validators/base.rb', line 31 def ==(other) self.class == other.class && == other. end |
#error_message ⇒ Object
25 26 27 |
# File 'lib/valigator/csv/field_validators/base.rb', line 25 def raise NotImplementedError end |
#error_type ⇒ Object
19 20 21 |
# File 'lib/valigator/csv/field_validators/base.rb', line 19 def error_type raise NotImplementedError end |
#valid?(value) ⇒ Boolean
13 14 15 |
# File 'lib/valigator/csv/field_validators/base.rb', line 13 def valid?(value) raise NotImplementedError end |