Add `filter` aliases for `Enumerable` and `Hash`.

parent f4117d81
......@@ -955,4 +955,5 @@ class Array
alias append push
alias prepend unshift
alias filter! select!
end
......@@ -826,4 +826,5 @@ module Enumerable
end
hash.values
end
alias filter select
end
......@@ -494,4 +494,7 @@ class Hash
self.fetch(k, &block)
end
end
alias filter select
alias filter! select!
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