vendor/gems/flexmock-0.8.5/lib/flexmock/core.rb
def method_missing(sym, *args, &block)
    flexmock_wrap do
      if handler = @expectations[sym]
        args << block  if block_given?
        handler.call(*args)
      elsif @ignore_missing
        FlexMock.undefined
      else
        super(sym, *args, &block)
      end
    end
  end
# Handle missing methods by attempting to look up a handler.
Handle missing methods by attempting to look up a handler.
Handle missing methods by attempting to look up a handler .
def method_missing(sym, *args, &block)
    flexmock_wrap do
      if handler = @expectations[sym]
        args << block  if block_given?
        handler.call(*args)
      elsif @ignore_missing
        FlexMock.undefined
      else
        super(sym, *args, &block)
      end
    end
  end
def method_missing ( sym , * args , & block ) flexmock_wrap do if handler = @expectations [ sym ] args << block if block_given? handler . call ( * args ) elsif @ignore_missing FlexMock . undefined else super ( sym , * args , & block ) end end end
Handle missing methods by attempting to look up a handler.
Handle missing methods by attempting to look up a handler .
sym
args
block