Method: Puppet::Parser::TemplateWrapper#has_variable?
- Defined in:
- lib/vendor/puppet/parser/templatewrapper.rb
#has_variable?(name) ⇒ Boolean
Should return true if a variable is defined, false if it is not
27 28 29 |
# File 'lib/vendor/puppet/parser/templatewrapper.rb', line 27 def has_variable?(name) scope.lookupvar(name.to_s, :file => file, :line => script_line) != :undefined end |