class Types::Boolean

Defines generic boolean type. @abstract

Public Instance Methods

type_classes() click to toggle source

Returns classes which are part of this type. In case of boolean TrueClass and FalseClass.

@return [Array] array of types objects

# File lib/types.rb, line 72
def type_classes
    [TrueClass, FalseClass]
end