Class: Settings::Root

Inherits:
Group show all
Defined in:
lib/iron/settings/root.rb

Overview

Root of a settings definition tree - contains a set of groups and entries

Constant Summary

Constants inherited from Node

Node::NODE_SEPARATOR

Instance Attribute Summary

Attributes inherited from Node

#key, #name, #parent, #root

Instance Method Summary collapse

Methods inherited from Group

#[], #add_entry, #add_group, #entries, #find_entry, #find_group, #find_item, #get_entry_val, #group?, #groups, #nodes, #set_entry_val

Methods inherited from Node

#entry?, #group?

Constructor Details

#initializeRoot

Construct ourselves



8
9
10
11
# File 'lib/iron/settings/root.rb', line 8

def initialize
  # We're a group...
  super(nil, '')
end