Class: DMap::Tables
- Inherits:
-
Object
- Object
- DMap::Tables
- Defined in:
- lib/dmap/core.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
Returns the value of attribute list.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#list ⇒ Object
Returns the value of attribute list.
113 114 115 |
# File 'lib/dmap/core.rb', line 113 def list @list end |
Class Method Details
.add(key, value = nil) ⇒ Object
123 124 125 126 |
# File 'lib/dmap/core.rb', line 123 def self.add(key, value=nil) #list[key] = {} if list[key].nil? list.push key, value unless value.nil? end |
.list ⇒ Object
119 120 121 |
# File 'lib/dmap/core.rb', line 119 def self.list @list ||= OrderedHash.new_by end |
Instance Method Details
#inheritance(value = nil) ⇒ Object
115 116 117 |
# File 'lib/dmap/core.rb', line 115 def inheritance(value=nil) list.push value unless value.nil? end |