Sha256: 5869e3ea47c95c19a70d4fea9dbc03fd629a01b0ed49d9d8b2943bd1cea211b6
Contents?: true
Size: 625 Bytes
Versions: 6
Compression:
Stored size: 625 Bytes
Contents
module RR module Injections class Injection include Space::Reader attr_reader :subject def subject_has_method_defined?(method_name) @subject.methods.include?(method_name.to_s) || @subject.protected_methods.include?(method_name.to_s) || @subject.private_methods.include?(method_name.to_s) end def subject_has_original_method? subject_respond_to_method?(original_method_alias_name) end protected def subject_respond_to_method?(method_name) subject_has_method_defined?(method_name) || @subject.respond_to?(method_name) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems