Class: VgCfgBackup::Config

Inherits:
Group
  • Object
show all
Defined in:
lib/vgcfgbackup.rb

Instance Method Summary collapse

Methods inherited from Group

#variable_value

Instance Method Details

#groupsObject



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

#nameObject



24
25
26
# File 'lib/vgcfgbackup.rb', line 24

def name
  nil
end

#variablesObject



28
29
30
# File 'lib/vgcfgbackup.rb', line 28

def variables
  self.elements.select { |e| e.is_a? Variable }
end