Class: DMap::Fields
- Inherits:
-
Object
- Object
- DMap::Fields
- Defined in:
- lib/dmap/core.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
Returns the value of attribute list.
Class Method Summary collapse
Instance Attribute Details
#list ⇒ Object
Returns the value of attribute list.
101 102 103 |
# File 'lib/dmap/core.rb', line 101 def list @list end |
Class Method Details
.add(field, property = nil) ⇒ Object
107 108 109 |
# File 'lib/dmap/core.rb', line 107 def self.add(field, property=nil) list.push field, property unless property.nil? end |
.list ⇒ Object
103 104 105 |
# File 'lib/dmap/core.rb', line 103 def self.list @list ||= OrderedHash.new_by end |