Sha256: eff8e4e7934d57c5b3841e5c7fcd9dae7d790d00d09400b6bb41b6dff8aabb72
Contents?: true
Size: 393 Bytes
Versions: 8
Compression:
Stored size: 393 Bytes
Contents
module Lolita module Configuration module Factory class Tab def self.add(dbi,*args, &block) type = args && args[0].is_a?(Symbol) ? args[0] : :default field_class(type).new(dbi,*args,&block) end def self.field_class(name) ("Lolita::Configuration::Tab::"+name.to_s.camelize).constantize end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems