Module: Typespec

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

Overview

Defined Under Namespace

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

Class Method Summary collapse

Class Method Details

.anyObject



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

def self.any; Typespec::Any; end

.arrayObject



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

def self.array; Typespec::Array; end

.booleanObject



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

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

.enumObject



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

def self.enum; Typespec::Enum; end

.expectsObject



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

def self.expects; Typespec::Value; end

.floatObject



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

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

.hashObject



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

def self.hash; Typespec::Hash; end

.integerObject



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

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

.nilObject



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

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

.numberObject



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

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

.objectObject



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

def self.object; Typespec::Object; end

.orObject



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

def self.or; Typespec::Or; end

.rationalObject



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

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

.stringObject



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

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

.structObject



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

def self.struct; Typespec::Struct; end

.symbolObject



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

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

.tObject



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

def self.t; Typespec::Type; end