Class: Object

Inherits:
BasicObject
Defined in:
lib/scampi/monkey_patches.rb,
lib/scampi/monkey_patches.rb

Overview

Predicate extensions for truth testing.

Instance Method Summary collapse

Instance Method Details

#false?Boolean

Returns:

  • (Boolean)


7
# File 'lib/scampi/monkey_patches.rb', line 7

def false? = false

#should(*args, &block) ⇒ Object

Create a Scampi::Should wrapper for this object.



71
72
73
# File 'lib/scampi/monkey_patches.rb', line 71

def should(*args, &block)
  Scampi::Should.new(self).be(*args, &block)
end

#true?Boolean

Returns:

  • (Boolean)


4
# File 'lib/scampi/monkey_patches.rb', line 4

def true?  = false