Class: DMap::Fields

Inherits:
Object
  • Object
show all
Defined in:
lib/dmap/core.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#listObject

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

.listObject



103
104
105
# File 'lib/dmap/core.rb', line 103

def self.list
  @list ||= OrderedHash.new_by
end