Class: Qrpm::RootNode
- Inherits:
-
HashNode
- Object
- Node
- ContainerNode
- HashNode
- Qrpm::RootNode
- Defined in:
- lib/qrpm/node.rb
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize ⇒ RootNode
constructor
A new instance of RootNode.
-
#interpolate(dict) ⇒ Object
Override Node#interpolate.
- #signature ⇒ Object
Methods inherited from HashNode
Methods inherited from ContainerNode
Methods inherited from Node
#class_name, #dot, #dump, #inspect, #interpolated?, #traverse, #variables
Constructor Details
#initialize ⇒ RootNode
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 |
#signature ⇒ Object
221 |
# File 'lib/qrpm/node.rb', line 221 def signature = "#{self.class_name}(#{values.map { |v| v.signature }.join(",")})" |