summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-06 22:02:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-06 22:02:25 +0000
commit492d8e67d792fea29e48bbbec2b953c4e31c69b9 (patch)
tree8af8d000296da82fed8ef69846afe9c2ba44ea5b
parent415a3ef9ab82c65a7abcba4a7d5b0a982af0b4d4 (diff)
* object.c (rb_f_integer): add example with base.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/object.c b/object.c
index f52522db90..0eb766846b 100644
--- a/object.c
+++ b/object.c
@@ -2110,6 +2110,8 @@ rb_Integer(VALUE val)
* Integer(123.999) #=> 123
* Integer("0x1a") #=> 26
* Integer(Time.new) #=> 1204973019
+ * Integer("0930", 10) #=> 930
+ * Integer("111", 2) #=> 7
*/
static VALUE