class MethodDelegationTest::ConstPathElement

Public Instance Methods

const_missing(const) click to toggle source
# File lib/puppet/vendor/rgen/test/method_delegation_test.rb, line 37
def const_missing(const)
  ConstPathElement.new(const, self)
end
to_s() click to toggle source
# File lib/puppet/vendor/rgen/test/method_delegation_test.rb, line 40
def to_s
  if @parent
    @parent.to_s+"::"+@name
  else
    @name
  end
end

Public Class Methods

const_missing_delegated(delegator, const) click to toggle source
# File lib/puppet/vendor/rgen/test/method_delegation_test.rb, line 30
def self.const_missing_delegated(delegator, const)
  ConstPathElement.new(const)
end
new(name, parent=nil) click to toggle source
# File lib/puppet/vendor/rgen/test/method_delegation_test.rb, line 33
def initialize(name, parent=nil)
  @name = name.to_s
  @parent = parent
end