public
Description: Rubinius, the Ruby VM
Homepage: http://rubini.us
Clone URL: git://github.com/evanphx/rubinius.git
Search Repo:
Added missing Numeric#truncate method.
NoKarma (author)
Thu May 15 15:42:26 -0700 2008
commit  12dbed4a8ae18476587326447ba72873a34c1007
tree    41d2148c28cf43b9d7f072f2f18c1c89cdd89b1c
parent  fc95e380712b43e9be348cf3ce3acbd27ffd2980
...
109
110
111
 
 
 
 
112
113
114
...
109
110
111
112
113
114
115
116
117
118
0
@@ -109,6 +109,10 @@ class Numeric
0
       return nil
0
     end
0
   end
0
+
0
+ def truncate
0
+ Float(self).truncate
0
+ end
0
 
0
   def integer?
0
     false

Comments

    No one has commented yet.