Class: Puppet::Parser::AST::PopsBridge::NilAsUndefExpression

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

Instance Attribute Summary

Attributes inherited from Leaf

#type, #value

Instance Method Summary collapse

Methods inherited from Expression

#children, #each, #initialize, #sequence_with, #to_s

Methods inherited from Leaf

#match, #to_s

Constructor Details

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

Instance Method Details

#evaluate(scope) ⇒ Object



59
60
61
62
# File 'lib/puppet/parser/ast/pops_bridge.rb', line 59

def evaluate(scope)
  result = super
  result.nil? ? :undef : result
end