Class: Lookout::Expected::Lookout::Actual::Method

Inherits:
Object show all
Defined in:
lib/lookout-3.0/expected/lookout/actual/method.rb

Overview

Represents expected Actual::Methods.

Instance Method Summary collapse

Methods inherited from Object

#expect

Instance Method Details

#difference(actual) ⇒ Difference::Lookout::Actual::Method?

A difference report between ACTUAL and #expected unless invoking #expected on ACTUAL returns true

Parameters:

Returns:



9
10
11
12
# File 'lib/lookout-3.0/expected/lookout/actual/method.rb', line 9

def difference(actual)
  Lookout::Difference::Lookout::Actual::Method.new(actual, expected) unless
    expected.call(actual)
end