Class: Lookout::Expected::FalseClass

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

Overview

Represents expected FalseClasses (of which ‘false` is the only instance).

Instance Method Summary collapse

Methods inherited from Object

#expect

Instance Method Details

#difference(actual) ⇒ Difference::Object

Returns A difference report between ACTUAL and #expected unless ACTUAL is falseful.

Parameters:

  • actual (Boolean)

Returns:

  • (Difference::Object)

    A difference report between ACTUAL and #expected unless ACTUAL is falseful



8
# File 'lib/lookout-3.0/expected/falseclass.rb', line 8

def difference(actual) super((not not actual)) end