Class: Puppet::Parser::AST::PopsBridge::ExpressionSupportingReturn
- Inherits:
-
Expression
- Object
- Puppet::Parser::AST
- Leaf
- Expression
- Puppet::Parser::AST::PopsBridge::ExpressionSupportingReturn
- Defined in:
- lib/puppet/parser/ast/pops_bridge.rb
Constant Summary
Constants inherited from Puppet::Parser::AST
Instance Attribute Summary
Attributes inherited from Leaf
Attributes inherited from Puppet::Parser::AST
#file, #line, #parent, #pos, #scope
Instance Method Summary collapse
- #evaluate(scope) ⇒ Object
-
#initialize(args) ⇒ ExpressionSupportingReturn
constructor
A new instance of ExpressionSupportingReturn.
Methods inherited from Expression
#children, #each, #sequence_with, #source_text, #to_s
Methods inherited from Leaf
Methods inherited from Puppet::Parser::AST
Methods included from Util::Errors
#adderrorcontext, #devfail, #error_context, error_location, error_location_with_space, error_location_with_unknowns, #exceptwrap, #fail
Constructor Details
#initialize(args) ⇒ ExpressionSupportingReturn
Returns a new instance of ExpressionSupportingReturn.
65 66 67 |
# File 'lib/puppet/parser/ast/pops_bridge.rb', line 65 def initialize args super end |
Instance Method Details
#evaluate(scope) ⇒ Object
69 70 71 72 73 74 75 |
# File 'lib/puppet/parser/ast/pops_bridge.rb', line 69 def evaluate(scope) return catch(:return) do return catch(:next) do return super(scope) end end end |