Method: Puppet::Parser::Parser#ast

Defined in:
lib/vendor/puppet/parser/parser_support.rb

#ast(klass, hash = {}) ⇒ Object

Create an AST object, and automatically add the file and line information if available.



39
40
41
# File 'lib/vendor/puppet/parser/parser_support.rb', line 39

def ast(klass, hash = {})
  klass.new ast_context(klass.use_docs, hash[:line]).merge(hash)
end