Class: Puppet::Pops::Model::PopsObject
- Includes:
- Types::PuppetObject
- Defined in:
- lib/puppet/pops/model/ast.rb
Direct Known Subclasses
Instance Attribute Summary collapse
- #hash ⇒ Object readonly
Class Method Summary collapse
- ._pcore_type ⇒ Object
- .create ⇒ Object
- .from_asserted_hash(init_hash) ⇒ Object
- .from_hash(init_hash) ⇒ Object
Instance Method Summary collapse
- #_pcore_all_contents(path) ⇒ Object
- #_pcore_contents ⇒ Object
- #_pcore_init_hash ⇒ Object
- #eql?(o) ⇒ Boolean (also: #==)
-
#initialize ⇒ PopsObject
constructor
A new instance of PopsObject.
- #to_s ⇒ Object
Methods included from Types::PuppetObject
Constructor Details
#initialize ⇒ PopsObject
Returns a new instance of PopsObject.
27 28 29 |
# File 'lib/puppet/pops/model/ast.rb', line 27 def initialize @hash = -1631630444118989922 end |
Instance Attribute Details
#hash ⇒ Object (readonly)
25 26 27 |
# File 'lib/puppet/pops/model/ast.rb', line 25 def hash @hash end |
Class Method Details
._pcore_type ⇒ Object
7 8 9 10 |
# File 'lib/puppet/pops/model/ast.rb', line 7 def self._pcore_type @_pcore_type ||= Types::PObjectType.new('Puppet::AST::PopsObject', { }) end |
.from_asserted_hash(init_hash) ⇒ Object
18 19 20 |
# File 'lib/puppet/pops/model/ast.rb', line 18 def self.from_asserted_hash(init_hash) new end |
.from_hash(init_hash) ⇒ Object
14 15 16 |
# File 'lib/puppet/pops/model/ast.rb', line 14 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
37 38 |
# File 'lib/puppet/pops/model/ast.rb', line 37 def _pcore_all_contents(path) end |
#_pcore_contents ⇒ Object
34 35 |
# File 'lib/puppet/pops/model/ast.rb', line 34 def _pcore_contents end |
#_pcore_init_hash ⇒ Object
30 31 32 |
# File 'lib/puppet/pops/model/ast.rb', line 30 def _pcore_init_hash {} end |
#eql?(o) ⇒ Boolean Also known as: ==
44 45 46 |
# File 'lib/puppet/pops/model/ast.rb', line 44 def eql?(o) o.instance_of?(self.class) end |
#to_s ⇒ Object
40 41 42 |
# File 'lib/puppet/pops/model/ast.rb', line 40 def to_s Types::TypeFormatter.string(self) end |