Method: Puppet::Pops::Model::Program#initialize

Defined in:
lib/puppet/pops/model/ast.rb

#initialize(locator, body = nil, definitions = _pcore_type['definitions'].value) ⇒ Program

Returns a new instance of Program.



4522
4523
4524
4525
4526
4527
4528
# File 'lib/puppet/pops/model/ast.rb', line 4522

def initialize(locator, body = nil, definitions = _pcore_type['definitions'].value)
  super()
  @hash = @hash ^ body.hash ^ definitions.hash ^ locator.hash
  @body = body
  @definitions = definitions
  @locator = locator
end