Method: Puppet::Parser::Scope#bound?

Defined in:
lib/puppet/parser/scope.rb

#bound?(name) ⇒ Boolean

Returns true if the given name is bound in the current (most nested) scope for assignments.

Returns:

  • (Boolean)


308
309
310
311
# File 'lib/puppet/parser/scope.rb', line 308

def bound?(name)
  # Do not look in ephemeral (match scope), the semantics is to answer if an assignable variable is bound
  effective_symtable(false).bound?(name)
end