# File lib/rspec/matchers/be_within.rb, line 12 def matches?(actual) unless defined?(@expected) raise ArgumentError.new("You must set an expected value using #of: be_within(#{delta}).of(expected_value)") end (super(actual) - expected).abs < delta end