Class: Object

Inherits:
BasicObject
Defined in:
lib/lookout-3.0.rb

Overview

Adds keyword methods “to” and “not” and #to_lookout_expected for Objects.

Instance Method Summary collapse

Instance Method Details

#notLookout::Object::To

“not” keywords, such as “to”, that’ll then handle “receive”

Returns:



48
# File 'lib/lookout-3.0.rb', line 48

def not; Lookout::Object::Not.new(self) end

#toLookout::Object::To

“to” keywords, such as “receive”

Returns:



44
# File 'lib/lookout-3.0.rb', line 44

def to; Lookout::Object::To.new(self) end

#to_lookout_expectedLookout::Expected::Object

Returns A wrapper around the receiver, making it an expected value.

Returns:



52
# File 'lib/lookout-3.0.rb', line 52

def to_lookout_expected; Lookout::Expected::Object.new(self) end