Parent

Included Modules

Class Index [+]

Quicksearch

RR::Injections::Injection

Attributes

subject[R]

Public Class Methods

instances() click to toggle source
   # File lib/rr/injections/injection.rb, line 5
5:         def instances
6:           @instances ||= HashWithObjectIdKey.new
7:         end

Public Instance Methods

subject_has_method_defined?(method_name_in_question) click to toggle source
    # File lib/rr/injections/injection.rb, line 14
14:       def subject_has_method_defined?(method_name_in_question)
15:         @subject.methods.detect {|method_name| method_name.to_sym == method_name_in_question.to_sym} ||
16:           @subject.protected_methods.detect {|method_name| method_name.to_sym == method_name_in_question.to_sym} ||
17:           @subject.private_methods.detect {|method_name| method_name.to_sym == method_name_in_question.to_sym}
18:       end
subject_has_original_method?() click to toggle source
    # File lib/rr/injections/injection.rb, line 20
20:       def subject_has_original_method?
21:         subject_respond_to_method?(original_method_alias_name)
22:       end

Protected Instance Methods

subject_respond_to_method?(method_name) click to toggle source
    # File lib/rr/injections/injection.rb, line 25
25:       def subject_respond_to_method?(method_name)
26:         subject_has_method_defined?(method_name) || @subject.respond_to?(method_name)
27:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.