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.
28 29 30 |
# File 'lib/puppet/pops/model/ast.rb', line 28 def initialize @hash = 2270595461303489901 end |
Instance Attribute Details
#hash ⇒ Object (readonly)
26 27 28 |
# File 'lib/puppet/pops/model/ast.rb', line 26 def hash @hash end |
Class Method Details
._pcore_type ⇒ Object
8 9 10 11 |
# File 'lib/puppet/pops/model/ast.rb', line 8 def self._pcore_type @_pcore_type ||= Types::PObjectType.new('Puppet::AST::PopsObject', { }) end |
.from_asserted_hash(init_hash) ⇒ Object
19 20 21 |
# File 'lib/puppet/pops/model/ast.rb', line 19 def self.from_asserted_hash(init_hash) new end |
.from_hash(init_hash) ⇒ Object
15 16 17 |
# File 'lib/puppet/pops/model/ast.rb', line 15 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
38 39 |
# File 'lib/puppet/pops/model/ast.rb', line 38 def _pcore_all_contents(path) end |
#_pcore_contents ⇒ Object
35 36 |
# File 'lib/puppet/pops/model/ast.rb', line 35 def _pcore_contents end |
#_pcore_init_hash ⇒ Object
31 32 33 |
# File 'lib/puppet/pops/model/ast.rb', line 31 def _pcore_init_hash {} end |
#eql?(o) ⇒ Boolean Also known as: ==
45 46 47 |
# File 'lib/puppet/pops/model/ast.rb', line 45 def eql?(o) o.instance_of?(self.class) end |
#to_s ⇒ Object
41 42 43 |
# File 'lib/puppet/pops/model/ast.rb', line 41 def to_s Types::TypeFormatter.string(self) end |