Class: Lite::Validation::Validator::Result::Disputed::Abstract::Hash
Constant Summary
Constants included
from Abstract
Abstract::EMPTY
Instance Method Summary
collapse
#child
#to_failure
#failure?, #to_result
#committed?, #refute, #refuted?
#refute, #refuted?
#dispute
#success?
Instance Method Details
#append(result, key) ⇒ Object
17
18
19
20
21
|
# File 'lib/lite/validation/validator/result/disputed/abstract/hash.rb', line 17
def append(result, key)
raise Error::Fatal, "Key already taken #{key}" if children.key? key
super
end
|
#signature(class_name) ⇒ Object
23
24
25
|
# File 'lib/lite/validation/validator/result/disputed/abstract/hash.rb', line 23
def signature(class_name)
super(class_name, " with #{errors_root.count} root errors, #{children.count} children")
end
|