range.rb: add `Range#entries` as an alias to `Range#to_a`.

parent 955c7f70
......@@ -78,6 +78,7 @@ class Range
raise RangeError, "cannot convert endless range to an array" if self.last.nil?
super
end
alias entries to_a
end
##
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment