class Shoulda::Matchers::Doublespeak::StubImplementation

@private

def self.create

def self.create
  new
end

def call(call)

def call(call)
  call.double.record_call(call)
  implementation.call(call)
end

def initialize

def initialize
  @implementation = proc { nil }
end

def returns(value = nil, &block)

def returns(value = nil, &block)
  if block
    @implementation = block
  else
    @implementation = proc { value }
  end
end