lib/rr/injections/double_injection.rb
Class DoubleInjection
has 26 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class DoubleInjection < Injection
extend(Module.new do
def find_or_create(subject_class, method_name)
instances[subject_class][method_name.to_sym] ||= begin
new(subject_class, method_name.to_sym).bind
Method bind_method
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def bind_method
id = BoundObjects.size
BoundObjects[id] = subject_class
if KeywordArguments.fully_supported?
Method dispatch_method
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def dispatch_method(subject,
subject_class,
method_name,
arguments,
keyword_arguments,