vendor/gems/flexmock-0.8.5/lib/flexmock/core.rb
# Override the built-in +method+ to include the mocked methods.
Override the built-in +method+ to include the mocked methods.
Override the built - in + method + to include the mocked methods .
def method(sym)
    @expectations[sym] || super
  rescue NameError => ex
    if @ignore_missing
      proc { FlexMock.undefined }
    else
      raise ex
    end
  end
def method ( sym ) @expectations [ sym ] || super rescue NameError => ex if @ignore_missing proc { FlexMock . undefined } else raise ex end end
Override the built-in +method+ to include the mocked methods.
Override the built - in + method + to include the mocked methods .
sym