Class: RR::Injections::Injection
Instance Method Summary
collapse
#class_instance_method_defined
#space
Instance Method Details
#original_method ⇒ Object
21
22
23
|
# File 'lib/rr/injections/injection.rb', line 21
def original_method
subject_class.instance_method(original_method_alias_name)
end
|
#subject_has_method_defined?(method_name_in_question) ⇒ Boolean
13
14
15
|
# File 'lib/rr/injections/injection.rb', line 13
def subject_has_method_defined?(method_name_in_question)
class_instance_method_defined(subject_class, method_name_in_question)
end
|
#subject_has_original_method? ⇒ Boolean
17
18
19
|
# File 'lib/rr/injections/injection.rb', line 17
def subject_has_original_method?
subject_has_method_defined?(original_method_alias_name)
end
|