Class: Kaiseki::ValidateResult
- Inherits:
-
PackageParser
- Object
- BasicParser
- PackageParser
- Kaiseki::ValidateResult
- Defined in:
- lib/result_validate.rb
Instance Attribute Summary collapse
-
#validators ⇒ Object
readonly
Returns the value of attribute validators.
Attributes inherited from BasicParser
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean (also: #==)
-
#initialize(expected, validators) ⇒ ValidateResult
constructor
A new instance of ValidateResult.
Methods inherited from PackageParser
Methods inherited from BasicParser
Methods included from Parseable
#&, #action, #and?, #cast, #filter, #merge, #not!, #one_or_more, #optional, #override, #parse, #predicate?, #protect, #repeat, #set, #skip, #tag_error, #tag_result, #to_parseable, #validate, #zero_or_more, #|
Constructor Details
#initialize(expected, validators) ⇒ ValidateResult
Returns a new instance of ValidateResult.
5 6 7 8 |
# File 'lib/result_validate.rb', line 5 def initialize expected, validators super expected @validators = validators end |
Instance Attribute Details
#validators ⇒ Object (readonly)
Returns the value of attribute validators.
3 4 5 |
# File 'lib/result_validate.rb', line 3 def validators @validators end |
Instance Method Details
#eql?(other) ⇒ Boolean Also known as: ==
10 11 12 |
# File 'lib/result_validate.rb', line 10 def eql? other other.is_a?(self.class) and other.expected == @expected and other.validators == @validators end |