Method: DbMeta::Abstract.from_type

Defined in:
lib/db_meta/abstract.rb

.from_type(type, args = {}) ⇒ Object



9
10
11
12
# File 'lib/db_meta/abstract.rb', line 9

def self.from_type(type, args = {})
  raise "Abstract type [#{type}] is unknown" unless TYPES.key?(type)
  TYPES[type].new(args)
end