disu.se

SymbolClass

Namespace

Lookout::Expected

Ancestors
  1. Object

  2. Value

  3. Object

Represents expected ::Symbols. A Symbol that’s suffixed by “?” is considered to be a query to be invoked on the actual result. If such a symbol is prefixed by “not_”, the result of the query is inversed.

Instance Methods

difference(actual::Symbol, ::Object)Difference::Symbol?#

Returns a difference report between actual and #expected if #expected is a query and the result of the query doesn’t equal what’s expected, super otherwise.