Module: DMap::Associations
- Defined in:
- lib/dmap/associations/core.rb,
lib/dmap/associations/hasn.rb,
lib/dmap/associations/belongs_to.rb
Defined Under Namespace
Modules: Core Classes: Belongs, BelongsTo, Has1, HasMany, HasN, Hasmany, Hasn, Hasone
Instance Attribute Summary collapse
-
#list ⇒ Object
Returns the value of attribute list.
Class Method Summary collapse
-
.add(field, validation, bucket, value) ⇒ Object
validates_*_of.
- .list ⇒ Object
Instance Attribute Details
#list ⇒ Object
Returns the value of attribute list.
3 4 5 |
# File 'lib/dmap/associations/core.rb', line 3 def list @list end |
Class Method Details
.add(field, validation, bucket, value) ⇒ Object
validates_*_of
11 12 13 |
# File 'lib/dmap/associations/core.rb', line 11 def add(field, validation, bucket, value) list[field][validation].store bucket, value unless value.nil? end |
.list ⇒ Object
6 7 8 |
# File 'lib/dmap/associations/core.rb', line 6 def list @list ||= OrderedHash.auto end |