Class: ValidationAmbiguity
- Inherits:
-
ValidationFailure
- Object
- ValidationFailure
- ValidationAmbiguity
- Defined in:
- lib/json_patterns.rb
Constant Summary
Constants included from Inspectable
Instance Attribute Summary collapse
-
#found ⇒ Object
readonly
Returns the value of attribute found.
-
#overlapping_patterns ⇒ Object
readonly
Returns the value of attribute overlapping_patterns.
Attributes inherited from ValidationFailure
Instance Method Summary collapse
Methods inherited from ValidationFailure
Methods included from HashInitialized
Methods included from DeepEquality
Methods included from Inspectable
Instance Attribute Details
#found ⇒ Object (readonly)
Returns the value of attribute found.
239 240 241 |
# File 'lib/json_patterns.rb', line 239 def found @found end |
#overlapping_patterns ⇒ Object (readonly)
Returns the value of attribute overlapping_patterns.
239 240 241 |
# File 'lib/json_patterns.rb', line 239 def overlapping_patterns @overlapping_patterns end |
Instance Method Details
#to_s ⇒ Object
241 242 243 244 |
# File 'lib/json_patterns.rb', line 241 def to_s overlapping_patterns = @overlapping_patterns.to_a.join(', ') return "ambiguous patterns at #{path_to_s}; found #{@found}; overlapping patterns: #{overlapping_patterns}" end |