Module: Delivered::Types

Defined in:
lib/delivered/types.rb

Class Method Summary collapse

Class Method Details

.Any(*types) ⇒ Object



111
# File 'lib/delivered/types.rb', line 111

def Any(*types) = AnyType.new(*types)

.ArrayOf(type) ⇒ Object



108
# File 'lib/delivered/types.rb', line 108

def ArrayOf(type) = ArrayOfType.new(type)

.BooleanObject



112
# File 'lib/delivered/types.rb', line 112

def Boolean = BooleanType.new

.Enumerable(type = nil) ⇒ Object



107
# File 'lib/delivered/types.rb', line 107

def Enumerable(type = nil) = EnumerableType.new(type)

.Nilable(type = nil) ⇒ Object



106
# File 'lib/delivered/types.rb', line 106

def Nilable(type = nil) = NilableType.new(type)

.RangeOf(type) ⇒ Object



109
# File 'lib/delivered/types.rb', line 109

def RangeOf(type) = RangeOfType.new(type)

.RespondTo(*methods) ⇒ Object



110
# File 'lib/delivered/types.rb', line 110

def RespondTo(*methods) = RespondToType.new(*methods)