class Hashema::Mismatch
Public Class Methods
at(location, original)
click to toggle source
# File lib/hashema/schema.rb, line 272 def self.at(location, original) new original.actual, original.expected, [location] + original.location, original.verb end
Public Instance Methods
message()
click to toggle source
# File lib/hashema/schema.rb, line 279 def message "expected /#{location.join '/'} to #{verb}" end
verb()
click to toggle source
Calls superclass method
# File lib/hashema/schema.rb, line 283 def verb super || "match\n\t#{expected.inspect}\nbut got\n\t#{actual.inspect}" end