disu.se

HashClass

Namespace

Lookout::Difference

Ancestors
  1. Object

  2. Object

Difference reports between ::Hashes. These reports are generated by turning the Hashes into ::Arrays, sorting them by key, and finally mapping the keys and values to their String inspections.

Constructor

This class inherits its constructor from Object.

Instance Methods

diffLookout::Diff::Formats::Set, super#

Returns a set “diff” unless #expected contains one element or #actual isn’t a Hash, super otherwise.

symbol::String, superprivate#

Returns the symbol ‘≉’ if #actual is a Hash of the same #size as #expected, super otherwise.