# File lib/rr/injections/double_injection.rb, line 125 def bind_method_that_self_destructs_and_delegates_to_method_missing id = BoundObjects.size BoundObjects[id] = subject_class subject_class.class_eval("def \#{method_name}(*args, &block)\n::RR::Injections::DoubleInjection::BoundObjects[\#{id}].class_eval do\nremove_method(:\#{method_name})\nend\nmethod_missing(:\#{method_name}, *args, &block)\nend\n", __FILE__, __LINE__ + 1) self end