Module: Boolean

Included in:
FalseClass, TrueClass
Defined in:
lib/boolean_class/boolean.rb

Overview

A module with no code within it. Just meant to be included, that’s all.

Examples:

Instance type checking

0.is_a?(Boolean)      #=> false
nil.is_a?(Boolean)    #=> false

Class type checking

Object < Boolean      #=> nil (false)
NilClass < Boolean    #=> nil (false)
Class < Boolean       #=> nil (false)

See Also: