Frontendrails logo Front End Rails

Ruby 2.4 has optimized lstrip and strip methods for single byte strings

Ruby 2.4 has optimized lstrip and strip methods for single byte strings

Bigbinary Bigbinary 14 March 2017

lstrip and rstrip methods have been optimized in ruby 2.4

IO#readlines now accepts chomp flag as an argument

IO#readlines now accepts chomp flag as an argument

Bigbinary Bigbinary 07 March 2017

IO methods now have an optional chomp flag to remove newline return characters

Ruby 2.4 now has Dir.empty? and File.empty? methods

Ruby 2.4 now has Dir.empty? and File.empty? methods

Bigbinary Bigbinary 28 February 2017

No more platform specific code to check empty directories

Ruby 2.4 implements Integer#digits for extracting digits in place-value notation

Ruby 2.4 implements Integer#digits for extracting digits in place-value notation

Bigbinary Bigbinary 23 February 2017

Ruby 2.4 implements Integer#digits for extracting digits in place-value notation which is useful in calculating checksum digits.

Ruby 2.4 adds Set#compare_by_identity and Set#compare_by_identity? methods

Ruby 2.4 adds Set#compare_by_identity and Set#compare_by_identity? methods

Bigbinary Bigbinary 29 December 2016

Ruby 2.4 adds compare_by_identity and compare_by_identity? methods for Set class so that now we can compare the set elements by their identitiy rather than value

Ruby 2.4 adds support for extracting named capture groups using MatchData#values_at

Ruby 2.4 adds support for extracting named capture groups using MatchData#values_at

Bigbinary Bigbinary 21 December 2016

Ruby 2.4 adds ability to extract named capture groups through values_at

Ruby 2.4 adds infinite? and finite? methods to Numeric

Ruby 2.4 adds infinite? and finite? methods to Numeric

Bigbinary Bigbinary 19 December 2016

Fixnum#infinite?/Bignum#infinite? and Numeric#finite?/Bignum#finite? methods are now consistent with Float#infinite?/BigDecimal#infinite?

Ruby 2.4 adds Comparable#clamp method

Ruby 2.4 adds Comparable#clamp method

Bigbinary Bigbinary 13 December 2016

Comparable#clamp method is added to Ruby 2.4 to limit the object to a specific range of values

Ruby 2.4 introduces liberal_parsing option for parsing bad CSV data

Ruby 2.4 introduces liberal_parsing option for parsing bad CSV data

Bigbinary Bigbinary 22 November 2016

CSV input with unescaped double quotes can now be parsed in Ruby 2.4 using liberal_parsing option

Passing block with Enumerable#chunk is not mandatory in Ruby 2.4

Passing block with Enumerable#chunk is not mandatory in Ruby 2.4

Bigbinary Bigbinary 21 November 2016

Enumerable#chunk does not require a block to be passed along with it in Ruby 2.4

Ruby 2.4 unifies Fixnum and Bignum into Integer

Ruby 2.4 unifies Fixnum and Bignum into Integer

Bigbinary Bigbinary 18 November 2016

Ruby 2.4 has unified Fixnum and Bignum into Integer class. It has also deprecated usage of Fixnum and Bignum

Ruby 2.4 implements Array#min and Array#max

Ruby 2.4 implements Array#min and Array#max

Bigbinary Bigbinary 17 November 2016

Ruby 2.4 implements Array#min and Array#max to find the minimum and maximum value of the array

Ruby 2.4 adds better support for extracting captured data from Regexp match results

Ruby 2.4 adds better support for extracting captured data from Regexp match results

Bigbinary Bigbinary 10 November 2016

Ruby 2.4 adds support for extracting named captures and positional capture groups from Regexp match results

Ruby 2.4 implements Regexp#match? without polluting global variables

Ruby 2.4 implements Regexp#match? without polluting global variables

Bigbinary Bigbinary 04 November 2016

Ruby 2.4 now allows matching a regex without updating global variables using Regexp#match?. This is a faster option to match regexes when we don't care about the match data

Ruby 2.4 implements Enumerable#sum

Ruby 2.4 implements Enumerable#sum

Bigbinary Bigbinary 02 November 2016

In Ruby 2.4, every object belonging to the `Enumerable` family can now call `sum` method on it