Module: Utilise::Augment::Matchers

Included in:
Object
Defined in:
lib/utilise/augment/matchers.rb

Overview

Extends classes that could be queried as a boolean

Instance Method Summary collapse

Instance Method Details

#bool?Boolean Also known as: is_bool?

Returns:

  • (Boolean)


5
6
7
# File 'lib/utilise/augment/matchers.rb', line 5

def bool?
  is_a?(TrueClass) || is_a?(FalseClass)
end