class Types::Type

Type defining class. @abstract

Public Instance Methods

match_type?(object) click to toggle source

Matches object is of this type.

@param [Object] object object for type matching @return [Boolean] true if match, false in otherwise

# File lib/types.rb, line 47
def match_type?(object)
    result = object.kind_of_any? self.type_classes
    if not result
        result = object.type_of_any? self.type_types
    end
    
    return result
end
type_classes() click to toggle source

Returns classes which are part of this type.

@return [Array] array of class objects @abstract

# File lib/types.rb, line 27
def type_classes
    not_implemented
end
type_types() click to toggle source

Returns types which are part of this type. @return [Array] array of types objects

# File lib/types.rb, line 36
def type_types
    [ ]
end