From 253cb8cbc58c551b7152d6c04a88bc7dea838a7c Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 5 Dec 2007 14:18:54 +0100 Subject: Move #close? to Numeric darcs-hash:20071205131854-4fc50-b83e8ad623c548b8ff5c264c8ae915c8e293b83f.gz --- lib/bacon.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/bacon.rb b/lib/bacon.rb index b73bfe4..41241f1 100644 --- a/lib/bacon.rb +++ b/lib/bacon.rb @@ -208,7 +208,7 @@ class Proc end end -class Float +class Numeric def close?(to, delta) (to.to_f - self).abs <= delta.to_f rescue -- cgit 1.4.1