Sha256: e13411ddcdabad95c39e634ec29cac6ce425c1f3b8694972ad5428a51582595e
Contents?: true
Size: 652 Bytes
Versions: 4
Compression:
Stored size: 652 Bytes
Contents
require 'pr/fields/invalid_value' require 'pr/fields/generic_field' require 'pr/fields/string_field' require 'pr/fields/boolean_field' require 'pr/fields/date_field' require 'pr/fields/float_field' module PR module Fields PreDefined = { generic: GenericField, string: StringField, boolean: BooleanField, date: DateField, float: FloatField } class << self def [] name __fields[name] end def []= custom_name, field __fields[custom_name] = field end def __fields PreDefined end private :__fields end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pr-1.0.0 | lib/pr/fields.rb |
pr-0.0.7 | lib/pr/fields.rb |
pr-0.0.6 | lib/pr/fields.rb |
pr-0.0.5 | lib/pr/fields.rb |