Module: Beowulf::ExtensionTypes

Included in:
Type::Extension
Defined in:
lib/beowulf/type/extension_types.rb

Constant Summary collapse

TYPES =
{
    void_t: {
    },
    extension_json_type: {
        value: Type::ExtensionJson
    }
}

Instance Method Summary collapse

Instance Method Details

#type(key, param, value) ⇒ Object



11
12
13
14
15
16
# File 'lib/beowulf/type/extension_types.rb', line 11

def type(key, param, value)
  return if value.nil?
  t = TYPES[key] or return value
  p = t[param] or return value
  p.new(value)
end