Class: Record::Type

Inherits:
Object
  • Object
show all
Defined in:
lib/record/field.rb

Overview

todo: use a module - it’s just a namespace/module now - why? why not?

Class Method Summary collapse

Class Method Details

.registryObject

e.g. use Type.registry = String etc.

note use @@ - there is only one registry


88
# File 'lib/record/field.rb', line 88

def self.registry() @@registry ||={} end