Class: Puppet::Pops::Model::PopsObject

Inherits:
Object
  • Object
show all
Includes:
Types::PuppetObject
Defined in:
lib/puppet/pops/model/ast.rb

Direct Known Subclasses

Positioned, Program

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Types::PuppetObject

#_pcore_type

Constructor Details

#initializePopsObject

Returns a new instance of PopsObject.



29
30
31
# File 'lib/puppet/pops/model/ast.rb', line 29

def initialize
  @hash = 2270595461303489901
end

Instance Attribute Details

#hashObject (readonly)



27
28
29
# File 'lib/puppet/pops/model/ast.rb', line 27

def hash
  @hash
end

Class Method Details

._pcore_typeObject



9
10
11
12
# File 'lib/puppet/pops/model/ast.rb', line 9

def self._pcore_type
  @_pcore_type ||= Types::PObjectType.new('Puppet::AST::PopsObject', {
                                          })
end

.createObject



24
25
26
# File 'lib/puppet/pops/model/ast.rb', line 24

def self.create
  new
end

.from_asserted_hash(init_hash) ⇒ Object



20
21
22
# File 'lib/puppet/pops/model/ast.rb', line 20

def self.from_asserted_hash(init_hash)
  new
end

.from_hash(init_hash) ⇒ Object



16
17
18
# File 'lib/puppet/pops/model/ast.rb', line 16

def self.from_hash(init_hash)
  from_asserted_hash(Types::TypeAsserter.assert_instance_of('Puppet::AST::PopsObject initializer', _pcore_type.init_hash_type, init_hash))
end

Instance Method Details

#_pcore_all_contents(path) ⇒ Object



40
41
# File 'lib/puppet/pops/model/ast.rb', line 40

def _pcore_all_contents(path)
end

#_pcore_contentsObject



37
38
# File 'lib/puppet/pops/model/ast.rb', line 37

def _pcore_contents
end

#_pcore_init_hashObject



33
34
35
# File 'lib/puppet/pops/model/ast.rb', line 33

def _pcore_init_hash
  {}
end

#eql?(o) ⇒ Boolean Also known as: ==

Returns:

  • (Boolean)


47
48
49
# File 'lib/puppet/pops/model/ast.rb', line 47

def eql?(o)
  o.instance_of?(self.class)
end

#to_sObject



43
44
45
# File 'lib/puppet/pops/model/ast.rb', line 43

def to_s
  Types::TypeFormatter.string(self)
end