mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
range.rb: add Range#entries as an alias to Range#to_a.
This commit is contained in:
@@ -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
|
||||
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user