module RSpec::Matchers

def be_within(delta)

expect(result).not_to be_within(0.5).of(3.0)
expect(result).to be_within(0.5).of(3.0)

@example

Passes if actual == expected +/- delta
def be_within(delta)
  BuiltIn::BeWithin.new(delta)
end