Class: MethodDelegationTest::TestDelegate
- Defined in:
- lib/puppet/vendor/rgen/test/method_delegation_test.rb
Instance Attribute Summary collapse
-
#callcount ⇒ Object
Returns the value of attribute callcount.
-
#mode ⇒ Object
Returns the value of attribute mode.
Instance Method Summary collapse
- #common_delegated(delegator) ⇒ Object (also: #to_s_delegated, #methodInSingleton_delegated, #class_delegated, #artificialMethod_delegated)
Instance Attribute Details
#callcount ⇒ Object
Returns the value of attribute callcount.
10 11 12 |
# File 'lib/puppet/vendor/rgen/test/method_delegation_test.rb', line 10 def callcount @callcount end |
#mode ⇒ Object
Returns the value of attribute mode.
10 11 12 |
# File 'lib/puppet/vendor/rgen/test/method_delegation_test.rb', line 10 def mode @mode end |
Instance Method Details
#common_delegated(delegator) ⇒ Object Also known as: to_s_delegated, methodInSingleton_delegated, class_delegated, artificialMethod_delegated
11 12 13 14 15 16 17 18 19 20 21 22 |
# 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 |