Class: RR::Injections::Injection

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

Instance Method Summary collapse

Methods included from ClassInstanceMethodDefined

#class_instance_method_defined

Methods included from Space::Reader

#space

Instance Method Details

#original_methodObject



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

Returns:

  • (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

Returns:

  • (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