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 47 def initialize(parent = nil) 48 @parent = parent 49 end
Public Instance Methods
[](name)
click to toggle source
# File lib/puppet/parser/scope.rb 55 def [](name) 56 if @parent 57 @parent[name] 58 end 59 end
add_entries_to(target = {}, include_undef = false)
click to toggle source
# File lib/puppet/parser/scope.rb 69 def add_entries_to(target = {}, include_undef = false) 70 @parent.add_entries_to(target, include_undef) unless @parent.nil? 71 # do not include match data ($0-$n) 72 target 73 end
bound?(name)
click to toggle source
# File lib/puppet/parser/scope.rb 65 def bound?(name) 66 false 67 end
include?(name)
click to toggle source
# File lib/puppet/parser/scope.rb 61 def include?(name) 62 (@parent and @parent.include?(name)) 63 end
is_local_scope?()
click to toggle source
# File lib/puppet/parser/scope.rb 51 def is_local_scope? 52 false 53 end