diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-06 22:02:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-06 22:02:25 +0000 |
commit | 492d8e67d792fea29e48bbbec2b953c4e31c69b9 (patch) | |
tree | 8af8d000296da82fed8ef69846afe9c2ba44ea5b /object.c | |
parent | 415a3ef9ab82c65a7abcba4a7d5b0a982af0b4d4 (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
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |