Changes from 1.6.5 to 1.7.1
The following information details the changes that are occurring in development versions 1.7.1 and 1.8 (though 1.8 will have additional changes as well):
Multiple assignment behavior is clarified.
Syntax enhanced to interpret argument parentheses to allow
p(”xx"*2).to_i.breakandnextextended to take an optional expression, which is used as a return value of the iterating method andyield, respectively.The following new methods (or modifications to methods) have been added:
Array#fetchArray#insertEnumerable#all?Enumerable#any?Enumerable#injectEnumerable#sort_byFile#fnmatchMatchData#to_aryMethod#==Module#include?Module#includedModule#method_removedModule#method_undefinedObject#singleton_method_removedObject#singleton_method_undefinedProc#==Proc#yieldRange#to_aryRange#stepRegexp#optionsString#casecmpString#insertSymbol#internSymbol::all_symbolsSystemExit#statusFile::lchmodFile::lchownIO::for_fdIO::readMath::acosMath::asinMath::atanMath::coshMath::hypotMath::sinhMath::tanhProcess::timesProcess::waitallSystemCallError::===String#eql?is now always case-sensitive.Dir::chdirextended to take a block.NoMethodErrorraised for undefined method.Interruptis a subclass ofSignalException(it was a subclass of Exception in 1.6 and prior).$?now givesProcess::Statusalong withProcess::wait2,Process::waitpid2.Regexp.last_match(n)extended to take an optional argument.The Digestmodule has been added as a replacement for themd5andsha1modules.Line-range ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access