Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed Match#to_ary

Ruby gives special meaning to #to_ary that is used in many places that
are difficult to predict. This can be the source of obscure bugs and
should not be used as an alias for #to_a.
  • Loading branch information...
commit a14b74fab86949b9be1bfedb42f97d0b3c341c96 1 parent 7dcf436
@mjackson authored
Showing with 0 additions and 2 deletions.
  1. +0 −2  lib/citrus.rb
View
2  lib/citrus.rb
@@ -1299,8 +1299,6 @@ def to_a
[self] + matches
end
- alias_method :to_ary, :to_a
-
# Returns the capture at the given +key+. If it is an Integer (and an
# optional length) or a Range, the result of #to_a with the same arguments
# is returned. Otherwise, the value at +key+ in #captures is returned.
Please sign in to comment.
Something went wrong with that request. Please try again.