The stable version of MRI 1.9.2 will be released soon. Let's compare the differences between the latest ruby and the legacy ruby.
Here this is the diff of the public methods of Kernel class on ruby 1.9.2dev and 1.8.7. I just used such command: ruby -ve 'puts Kernel.public_methods.sort'
.
The differences were more than I thought.
!
became a method from a build-in operator- Some mathematical libraries are now build-in
Kernel.chomp
worked like Perl, targetting$_
, but now it was eliminatedclass_variable_get/set
is now available besidesinstance_variable_get/set
define_singleton_method
!spawn
!
No comments:
Post a Comment