Method: DataModel::Type#instantiate
- Defined in:
- lib/data_model/type.rb
#instantiate(name, args: {}, params: nil) ⇒ Type
instanciate another type by name
47 48 49 50 51 |
# File 'lib/data_model/type.rb', line 47 def instantiate(name, args: {}, params: nil) t = @type_registry.type(name, args:, params:) return t end |