Module: Philosophal::Types

Included in:
Properties
Defined in:
lib/philosophal/types.rb,
lib/philosophal/types/any_type.rb,
lib/philosophal/types/boolean_type.rb,
lib/philosophal/types/hash_of_type.rb,
lib/philosophal/types/array_of_type.rb

Defined Under Namespace

Classes: AnyType, ArrayOfType, BooleanType, HashOfType

Instance Method Summary collapse

Instance Method Details

#_AnyObject



10
11
12
# File 'lib/philosophal/types.rb', line 10

def _Any
  AnyType::Instance
end

#_ArrayOf(subtype) ⇒ Object



18
19
20
# File 'lib/philosophal/types.rb', line 18

def _ArrayOf(subtype)
  ArrayOfType.instance(subtype)
end

#_BooleanObject



14
15
16
# File 'lib/philosophal/types.rb', line 14

def _Boolean
  BooleanType::Instance
end

#_HashOf(key_type, value_type) ⇒ Object



22
23
24
# File 'lib/philosophal/types.rb', line 22

def _HashOf(key_type, value_type)
  HashOfType.instance(key_type, value_type)
end