The release of Ruby 2.0.0 Today, February 24, 2013, a new version of Ruby 2.0.0-p0 has been released.
This is the first stable release of the new major branch.
Let's see what's new brought us a new release.
Syntax changes Keyword arguments have been added to increase flexibility when designing APIs . Added a new way to extend the class Module # prepend %i
now used to quickly and easily create a character array__dir__
returns the name of the directory from which the file is currently being executed.UTF-8 default encoding Built-in libraries Enumerator # lazy New methods Enumerator#size
and Range#size
for lazy computing Added #to_h
agreement to Hash. Onigmo as a new regular expression engine Asynchronous API exception handling Other changes DTrace and TracePoint support Various performance improvements Refinements added as experiment. News on the official website ')
Source: https://habr.com/ru/post/170513/All Articles