class Puppet::Parser::Scope::Ephemeral
Abstract base class for LocalScope and MatchScope
Attributes
parent[R]
Public Class Methods
new(parent = nil)
click to toggle source
# File lib/puppet/parser/scope.rb 48 def initialize(parent = nil) 49 @parent = parent 50 end
Public Instance Methods
[](name)
click to toggle source
# File lib/puppet/parser/scope.rb 56 def [](name) 57 if @parent 58 @parent[name] 59 end 60 end
add_entries_to(target = {}, include_undef = false)
click to toggle source
# File lib/puppet/parser/scope.rb 70 def add_entries_to(target = {}, include_undef = false) 71 @parent.add_entries_to(target, include_undef) unless @parent.nil? 72 # do not include match data ($0-$n) 73 target 74 end
bound?(name)
click to toggle source
# File lib/puppet/parser/scope.rb 66 def bound?(name) 67 false 68 end
include?(name)
click to toggle source
# File lib/puppet/parser/scope.rb 62 def include?(name) 63 (@parent and @parent.include?(name)) 64 end
is_local_scope?()
click to toggle source
# File lib/puppet/parser/scope.rb 52 def is_local_scope? 53 false 54 end