disu.se

LiteralClass

Namespace

Lookout

Ancestors
  1. Value

  2. Object

Proxies objects that should be literally expected. This is achieved by overriding #to_lookout_expected to wrap the object in a Lookout::Expected::Object instead of using whatever #to_lookout_expected on the object would normally return. This allows us to expect a literal Range instead of allowing either a Range or an item included in the range.

Constructor

initialize(expectedObject)#

Proxies the expected value, allowing it to be expected literally.

Instance Methods

to_lookout_expectedExpected::Object#

Returns an expected value wrapper around the expected value.