class MethodDelegationTest::TestDelegate

Attributes

callcount[RW]
mode[RW]

Public Instance Methods

artificialMethod_delegated(delegator) click to toggle source
Alias for: common_delegated
class_delegated(delegator) click to toggle source
Alias for: common_delegated
common_delegated(delegator) click to toggle source
# File lib/puppet/vendor/rgen/test/method_delegation_test.rb, line 11
def common_delegated(delegator)
  @callcount ||= 0
  @callcount += 1
  case @mode 
    when :continue
      throw :continue
    when :delegatorId
      delegator.object_id
    when :return7
      7
  end
end
methodInSingleton_delegated(delegator) click to toggle source
Alias for: common_delegated
to_s_delegated(delegator) click to toggle source
Alias for: common_delegated