Class: VgCfgBackup::Config
- Defined in:
- lib/vgcfgbackup.rb
Instance Method Summary collapse
Methods inherited from Group
Instance Method Details
#groups ⇒ Object
32 33 34 |
# File 'lib/vgcfgbackup.rb', line 32 def groups self.elements.select { |e| e.is_a? Group }.inject({}) { |h,v| h[v.name] = v; h } end |
#name ⇒ Object
24 25 26 |
# File 'lib/vgcfgbackup.rb', line 24 def name nil end |
#variables ⇒ Object
28 29 30 |
# File 'lib/vgcfgbackup.rb', line 28 def variables self.elements.select { |e| e.is_a? Variable } end |