Parent

Included Modules

Class/Module Index [+]

Quicksearch

RR::Injections::Injection

Attributes

subject[R]

Public Class Methods

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

Public Instance Methods

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

Protected Instance Methods

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.