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

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

Overview

Represents expected Actual::Not::Methods.

Instance Method Summary collapse

Methods inherited from Object

#expect

Instance Method Details

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

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

Parameters:

Returns:



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

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