summaryrefslogtreecommitdiffhomepage
path: root/mrblib
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-05-12 11:09:03 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-05-12 11:09:03 +0900
commit032d11de1b29ab63e396322482d27e244c422647 (patch)
tree6e23724a9402a826777d6552735080a4015cde65 /mrblib
parent955c7f703e2ee81d3b5bf1eec60ff2d24ee6da11 (diff)
downloadmruby-032d11de1b29ab63e396322482d27e244c422647.tar.gz
mruby-032d11de1b29ab63e396322482d27e244c422647.zip
range.rb: add `Range#entries` as an alias to `Range#to_a`.
Diffstat (limited to 'mrblib')
-rw-r--r--mrblib/range.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/mrblib/range.rb b/mrblib/range.rb
index b02fad2b6..087428c0d 100644
--- a/mrblib/range.rb
+++ b/mrblib/range.rb
@@ -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
##