Class: Puppet::Parser::AST::PopsBridge::ExpressionSupportingReturn

Inherits:
Expression show all
Defined in:
lib/puppet/parser/ast/pops_bridge.rb

Constant Summary

Constants inherited from Puppet::Parser::AST

AST

Instance Attribute Summary

Attributes inherited from Leaf

#type, #value

Attributes inherited from Puppet::Parser::AST

#file, #line, #parent, #pos, #scope

Instance Method Summary collapse

Methods inherited from Expression

#children, #each, #sequence_with, #source_text, #to_s

Methods inherited from Leaf

#initialize, #match, #to_s

Methods inherited from Puppet::Parser::AST

#initialize, #inspect, #safeevaluate

Methods included from Util::Errors

#adderrorcontext, #devfail, #error_context, error_location, error_location_with_space, error_location_with_unknowns, #exceptwrap, #fail

Constructor Details

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

Instance Method Details

#evaluate(scope) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/puppet/parser/ast/pops_bridge.rb', line 61

def evaluate(scope)
  catch(:return) do
    return catch(:next) do
      return super(scope)
    end
  end
end