Method: Puppet::Pops::Model::NamedDefinition.from_asserted_hash
- Defined in:
- lib/puppet/pops/model/ast.rb
.from_asserted_hash(init_hash) ⇒ Object
1870 1871 1872 1873 1874 1875 1876 1877 1878 |
# File 'lib/puppet/pops/model/ast.rb', line 1870 def self.from_asserted_hash(init_hash) new( init_hash['locator'], init_hash['offset'], init_hash['length'], init_hash['name'], init_hash.fetch('parameters') { _pcore_type['parameters'].value }, init_hash['body']) end |