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
- #bool? ⇒ Boolean (also: #is_bool?)
Instance Method Details
#bool? ⇒ Boolean Also known as: is_bool?
5 6 7 |
# File 'lib/utilise/augment/matchers.rb', line 5 def bool? is_a?(TrueClass) || is_a?(FalseClass) end |