Class: Lookout::Object::Not
Overview
The “not” keyword on Objects.
Defined Under Namespace
Classes: Receive
Instance Method Summary collapse
-
#initialize(object) ⇒ Not
constructor
Wraps OBJECT as a “not”.
-
#receive ⇒ Receive
A wrapper around the object that’ll set up a reception expectation on it.
-
#to ⇒ self
Method for improving readability of “not” keyword set-up.
Constructor Details
#initialize(object) ⇒ Not
Wraps OBJECT as a “not”.
7 |
# File 'lib/lookout-3.0/object/not.rb', line 7 def initialize(object) @object = object end |
Instance Method Details
#receive ⇒ Receive
Returns A wrapper around the object that’ll set up a reception expectation on it.
15 |
# File 'lib/lookout-3.0/object/not.rb', line 15 def receive; Receive.new(@object) end |
#to ⇒ self
Method for improving readability of “not” keyword set-up.
11 |
# File 'lib/lookout-3.0/object/not.rb', line 11 def to; self end |