diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2007-12-05 14:18:54 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2007-12-05 14:18:54 +0100 |
commit | 253cb8cbc58c551b7152d6c04a88bc7dea838a7c (patch) | |
tree | fc849ddb6ade9a5fd4f94bbd7cd1a87b5786dcaf | |
parent | 17bf327a39bea0b4d9473cc718c369558f7dc3ba (diff) | |
download | bacon-253cb8cbc58c551b7152d6c04a88bc7dea838a7c.tar.gz bacon-253cb8cbc58c551b7152d6c04a88bc7dea838a7c.tar.xz bacon-253cb8cbc58c551b7152d6c04a88bc7dea838a7c.zip |
Move #close? to Numeric
darcs-hash:20071205131854-4fc50-b83e8ad623c548b8ff5c264c8ae915c8e293b83f.gz
-rw-r--r-- | lib/bacon.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |