vendor/gems/flexmock-0.8.5/lib/flexmock/partial_mock.rb
# Define a proxy method that forwards to our mock object.  The
# proxy method is defined as a singleton method on the object
# being mocked.
Define a proxy method that forwards to our mock object.  The
proxy method is defined as a singleton method on the object
being mocked.
Define a proxy method that forwards to our mock object . The proxy method is defined as a singleton method on the object being mocked .
def define_proxy_method(method_name)
      if method_name.to_s =~ /=$/
        eval_line = __LINE__ + 1
        sclass.class_eval %{
          def #{method_name}(*args, &block)
            @flexmock_proxy.mock.__send__(:#{method_name}, *args, &block) 
          end
        }, __FILE__, eval_line
      else
        eval_line = __LINE__ + 1
        sclass.class_eval %{
          def #{method_name}(*args, &block)
            @flexmock_proxy.mock.#{method_name}(*args, &block) 
          end
        }, __FILE__, eval_line
        make_rcov_recognize_the_above_eval_is_covered = true
      end
    end
def define_proxy_method ( method_name ) if method_name . to_s =~ / =$ / eval_line = __LINE__ + 1 sclass . class_eval %{
          def #{method_name}(*args, &block)
            @flexmock_proxy.mock.__send__(:#{method_name}, *args, &block) 
          end
        } , __FILE__ , eval_line else eval_line = __LINE__ + 1 sclass . class_eval %{
          def #{method_name}(*args, &block)
            @flexmock_proxy.mock.#{method_name}(*args, &block) 
          end
        } , __FILE__ , eval_line make_rcov_recognize_the_above_eval_is_covered = true end end
Define a proxy method that forwards to our mock object.
Define a proxy method that forwards to our mock object .
method_name