Class: Lookout::Object::To

Inherits:
Object show all
Defined in:
lib/lookout-3.0/object/to.rb

Overview

The “to” keyword on Objects.

Defined Under Namespace

Classes: Receive

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ To

Wraps OBJECT as a “to”.

Parameters:



7
# File 'lib/lookout-3.0/object/to.rb', line 7

def initialize(object) @object = object end

Instance Method Details

#receiveReceive

Returns A wrapper around the object that’ll set up a reception expectation on it.

Returns:

  • (Receive)

    A wrapper around the object that’ll set up a reception expectation on it



11
# File 'lib/lookout-3.0/object/to.rb', line 11

def receive; Receive.new(@object) end