Class: RR::Injections::Injection

Inherits:
Object
  • Object
show all
Includes:
ClassInstanceMethodDefined, Space::Reader
Defined in:
lib/rr/injections/injection.rb

Direct Known Subclasses

DoubleInjection, MethodMissingInjection, SingletonMethodAddedInjection

Instance Method Summary (collapse)

Methods included from ClassInstanceMethodDefined

#class_instance_method_defined

Methods included from Space::Reader

#space

Instance Method Details

- (Object) original_method



21
22
23
# File 'lib/rr/injections/injection.rb', line 21

def original_method
  subject_class.instance_method(original_method_alias_name)
end

- (Boolean) subject_has_method_defined?(method_name_in_question)



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

- (Boolean) subject_has_original_method?



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