Method: Puppet::Pops::Model::Positioned.create
- Defined in:
- lib/puppet/pops/model/ast.rb
.create(locator, offset, length) ⇒ Object
90 91 92 93 94 95 96 97 |
# File 'lib/puppet/pops/model/ast.rb', line 90 def self.create(locator, offset, length) ta = Types::TypeAsserter attrs = _pcore_type.attributes(true) ta.assert_instance_of('Puppet::AST::Positioned[locator]', attrs['locator'].type, locator) ta.assert_instance_of('Puppet::AST::Positioned[offset]', attrs['offset'].type, offset) ta.assert_instance_of('Puppet::AST::Positioned[length]', attrs['length'].type, length) new(locator, offset, length) end |