Permalink
Browse files

delete Kernel.#Integer (ext.rb)

  • Loading branch information...
1 parent 870df30 commit 4942b9d59317494940311a0e8e70375294c2a399 @kachick committed May 7, 2012
Showing with 0 additions and 15 deletions.
  1. +0 −15 lib/integer/base/ext.rb
@@ -20,21 +20,6 @@ def to_i(base=10)
end
end
-module Kernel
- alias_method :original_Integer, :Integer
-
- # @return [Integer]
- def Integer(obj)
- original_integer obj
- rescue ArgumentError
- if obj.kind_of? String
- ::Integer::Base.parse self, base
- else
- raise
- end
- end
-end
-
class Integer
# @overload to_s(base_number)

0 comments on commit 4942b9d

Please sign in to comment.