Class: Qrpm::RootNode

Inherits:
HashNode show all
Defined in:
lib/qrpm/node.rb

Instance Attribute Summary

Attributes inherited from Node

#expr, #name, #parent, #path

Instance Method Summary collapse

Methods inherited from HashNode

#dump, #exprs

Methods inherited from ContainerNode

#exprs, #values, #variables

Methods inherited from Node

#class_name, #dot, #dump, #inspect, #interpolated?, #traverse, #variables

Constructor Details

#initializeRootNode

Returns a new instance of RootNode.



212
# File 'lib/qrpm/node.rb', line 212

def initialize() super(nil, nil, {}) end

Instance Method Details

#interpolate(dict) ⇒ Object

Override Node#interpolate. Only interpolates contained DirectoryNode objects (TODO doubtfull - this is a Qrpm-level problem not a Node problem)



216
217
218
219
# File 'lib/qrpm/node.rb', line 216

def interpolate(dict)
  exprs.each { |e| e.is_a?(DirectoryNode) and e.interpolate(dict) }
  super
end

#signatureObject



221
# File 'lib/qrpm/node.rb', line 221

def signature = "#{self.class_name}(#{values.map { |v| v.signature }.join(",")})"