Hash
@private
@private
# File lib/rspec/mocks/method_double.rb, line 9 9: def initialize(object, method_name, proxy) 10: @method_name = method_name 11: @object = object 12: @proxy = proxy 13: @stashed = false 14: store(:expectations, []) 15: store(:stubs, []) 16: end
@private
# File lib/rspec/mocks/method_double.rb, line 19 19: def expectations 20: self[:expectations] 21: end
@private
# File lib/rspec/mocks/method_double.rb, line 42 42: def object_singleton_class 43: class << @object; self; end
@private
# File lib/rspec/mocks/method_double.rb, line 24 24: def stubs 25: self[:stubs] 26: end
@private
# File lib/rspec/mocks/method_double.rb, line 29 29: def visibility 30: if TestDouble === @object 31: 'public' 32: elsif object_singleton_class.private_method_defined?(@method_name) 33: 'private' 34: elsif object_singleton_class.protected_method_defined?(@method_name) 35: 'protected' 36: else 37: 'public' 38: end 39: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.