Class: Puppet::Parser::AST::Nop

Inherits:
Leaf show all
Defined in:
lib/vendor/puppet/parser/ast/nop.rb

Overview

This class is a no-op, it doesn’t produce anything when evaluated, hence it’s name :-)

Constant Summary

Constants inherited from Puppet::Parser::AST

AST

Constants included from Util::Docs

Util::Docs::HEADER_LEVELS

Instance Attribute Summary

Attributes inherited from Leaf

#type, #value

Attributes inherited from Puppet::Parser::AST

#file, #line, #parent, #scope

Attributes included from Util::Docs

#doc, #nodoc

Instance Method Summary collapse

Methods inherited from Leaf

#match, #to_s

Methods inherited from Puppet::Parser::AST

associates_doc, #evaluate_match, #initialize, #inspect, #parsefail, #parsewrap, #safeevaluate, settor?, #use_docs

Methods included from Util::Docs

#desc, #dochook, #doctable, #markdown_definitionlist, #markdown_header, #nodoc?, #pad, scrub

Methods included from Util::MethodHelper

#requiredopts, #set_options, #symbolize_options

Methods included from Util::Errors

#adderrorcontext, #devfail, #error_context, #exceptwrap, #fail

Constructor Details

This class inherits a constructor from Puppet::Parser::AST

Instance Method Details

#evaluate(scope) ⇒ Object



7
8
9
# File 'lib/vendor/puppet/parser/ast/nop.rb', line 7

def evaluate(scope)
  # nothing to do
end