Method: Puppet::Pops::Model::NodeDefinition#initialize
- Defined in:
- lib/puppet/pops/model/ast.rb
#initialize(locator, offset, length, host_matches, parent = nil, body = nil) ⇒ NodeDefinition
Returns a new instance of NodeDefinition.
2448 2449 2450 2451 2452 2453 2454 |
# File 'lib/puppet/pops/model/ast.rb', line 2448 def initialize(locator, offset, length, host_matches, parent = nil, body = nil) super(locator, offset, length) @hash = @hash ^ parent.hash ^ host_matches.hash ^ body.hash @parent = parent @host_matches = host_matches @body = body end |