Ruby 2.6

Ruby 2.6

Ruby 2.6 Range#cover? accepts Range object as argument

Ruby 2.6 Range#cover? accepts Range object as argument and returns boolean if the object is comparable and within range.

Read