vendor/gems/flexmock-0.8.5/lib/flexmock/mock_container.rb
def make_partial_proxy(container, obj, name, safe_mode)
      name ||= "flexmock(#{obj.class.to_s})"
      obj.instance_eval {
        mock = FlexMock.new(name, container)
        @flexmock_proxy ||= PartialMockProxy.new(obj, mock, safe_mode)
      }
      obj.instance_variable_get("@flexmock_proxy")
    end
# Create a PartialMockProxy for the given object.  Use +name+ as
# the name of the mock object.
Create a PartialMockProxy for the given object.  Use +name+ as
the name of the mock object.
Create a PartialMockProxy for the given object . Use + name + as the name of the mock object .
def make_partial_proxy(container, obj, name, safe_mode)
      name ||= "flexmock(#{obj.class.to_s})"
      obj.instance_eval {
        mock = FlexMock.new(name, container)
        @flexmock_proxy ||= PartialMockProxy.new(obj, mock, safe_mode)
      }
      obj.instance_variable_get("@flexmock_proxy")
    end
def make_partial_proxy ( container , obj , name , safe_mode ) name ||= "flexmock(#{obj.class.to_s})" obj . instance_eval { mock = FlexMock . new ( name , container ) @flexmock_proxy ||= PartialMockProxy . new ( obj , mock , safe_mode ) } obj . instance_variable_get ( "@flexmock_proxy" ) end
Create a PartialMockProxy for the given object.
Create a PartialMockProxy for the given object .
container
obj
name
safe_mode