Module: DataModel::Builtin

Defined in:
lib/data_model/builtin.rb

Defined Under Namespace

Classes: Array, BigDecimal, Boolean, Date, Float, Hash, Integer, Numeric, Object, Or, String, Symbol, Time

Class Method Summary collapse

Class Method Details

.typesHash{Symbol => Type}

Hash of all builtin types, useful when instanciating a Registry

Returns:



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/data_model/builtin.rb', line 5

def self.types
	{
		hash: Builtin::Hash,
		array: Builtin::Array,
		or: Builtin::Or,
		object: Builtin::Object,
		boolean: Builtin::Boolean,
		date: Builtin::Date,
		time: Builtin::Time,
		string: Builtin::String,
		symbol: Builtin::Symbol,
		integer: Builtin::Integer,
		decimal: Builtin::BigDecimal,
		float: Builtin::Float,
		numeric: Builtin::Numeric
	}
end