Class: Types::Boolean Abstract

Inherits:
Type show all
Defined in:
lib/types.rb

Overview

This class is abstract.

Defines generic boolean type.

Direct Known Subclasses

Boolean

Instance Method Summary collapse

Methods inherited from Type

#match_type?, #type_types

Instance Method Details

#type_classesArray

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

Returns:

  • (Array)

    array of types objects



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

def type_classes
    [TrueClass, FalseClass]
end