Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix indent

  • Loading branch information...
commit 41148e1d3bb3081491fbe04ffd0e1dda2b8e0df2 1 parent 4942b9d
@kachick authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/integer/base/ext.rb
View
10 lib/integer/base/ext.rb
@@ -1,6 +1,7 @@
# Copyright (C) 2011 Kenichi Kamiya
class String
+
alias_method :original_to_i, :to_i
remove_method :to_i
@@ -18,8 +19,10 @@ def to_i(base=10)
original_to_i base
end
end
+
end
+
class Integer
# @overload to_s(base_number)
@@ -35,14 +38,21 @@ def to_s(base=10)
original_to_s base
end
end
+
end
+
class Fixnum
+
alias_method :original_to_s, :to_s
remove_method :to_s
+
end
+
class Bignum
+
alias_method :original_to_s, :to_s
remove_method :to_s
+
end
Please sign in to comment.
Something went wrong with that request. Please try again.