Sha256: 2950244950ccef3fc1426d5623c1f23813f0f5aba416fe2105363011d7ab0216
Contents?: true
Size: 298 Bytes
Versions: 2
Compression:
Stored size: 298 Bytes
Contents
module Jschematic class ValidationError < StandardError attr_reader :what, :expected, :actual def initialize(what, expected, actual) @what, @expected, @actual = what, expected, actual end def to_s "#{what} expected #{expected} but found #{actual}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jschematic-0.0.2 | lib/jschematic/validation_error.rb |
jschematic-0.0.1 | lib/jschematic/validation_error.rb |