Module: Typespec

Defined in:
lib/typespec.rb,
lib/typespec/gem.rb

Overview

Defined Under Namespace

Modules: Gem Classes: Any, Array, Enum, Function, Hash, Object, Or, Struct, Type, Value

Class Method Summary collapse

Class Method Details

.anythingObject



13
# File 'lib/typespec.rb', line 13

def self.anything; Typespec::Any; end

.arrayObject



75
# File 'lib/typespec.rb', line 75

def self.array; Typespec::Array; end

.booleanObject



54
# File 'lib/typespec.rb', line 54

def self.boolean; Typespec.or[Typespec.t[TrueClass], Typespec.t[FalseClass]]; end

.enumObject



175
# File 'lib/typespec.rb', line 175

def self.enum; Typespec::Enum; end

.expectsObject



31
# File 'lib/typespec.rb', line 31

def self.expects; Typespec::Value; end

.floatObject



63
# File 'lib/typespec.rb', line 63

def self.float; Typespec.t[Float]; end

.fnObject



185
# File 'lib/typespec.rb', line 185

def self.fn; Typespec::Function; end

.functionObject



186
# File 'lib/typespec.rb', line 186

def self.function; Typespec::Function; end

.hashObject



97
# File 'lib/typespec.rb', line 97

def self.hash; Typespec::Hash; end

.integerObject



60
# File 'lib/typespec.rb', line 60

def self.integer; Typespec.t[Integer]; end

.nilObject



51
# File 'lib/typespec.rb', line 51

def self.nil; Typespec.t[NilClass]; end

.nothingObject



10
# File 'lib/typespec.rb', line 10

def self.nothing; Typespec.nil; end

.numberObject



57
# File 'lib/typespec.rb', line 57

def self.number; Typespec.t[Numeric]; end

.objectObject



161
# File 'lib/typespec.rb', line 161

def self.object; Typespec::Object; end

.orObject



41
# File 'lib/typespec.rb', line 41

def self.or; Typespec::Or; end

.rationalObject



66
# File 'lib/typespec.rb', line 66

def self.rational; Typespec.t[Rational]; end

.stringObject



69
# File 'lib/typespec.rb', line 69

def self.string; Typespec.t[String]; end

.structObject



124
# File 'lib/typespec.rb', line 124

def self.struct; Typespec::Struct; end

.symbolObject



72
# File 'lib/typespec.rb', line 72

def self.symbol; Typespec.t[Symbol]; end

.tObject



21
# File 'lib/typespec.rb', line 21

def self.t; Typespec::Type; end