From 57a0132b41920ea14b903113586bf970c8210efa Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 16 Sep 2019 07:55:18 +0900 Subject: Add `filter` aliases for `Enumerable` and `Hash`. --- mrbgems/mruby-hash-ext/mrblib/hash.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mrbgems/mruby-hash-ext') diff --git a/mrbgems/mruby-hash-ext/mrblib/hash.rb b/mrbgems/mruby-hash-ext/mrblib/hash.rb index 547f3404a..33e2dcb9f 100644 --- a/mrbgems/mruby-hash-ext/mrblib/hash.rb +++ b/mrbgems/mruby-hash-ext/mrblib/hash.rb @@ -494,4 +494,7 @@ class Hash self.fetch(k, &block) end end + + alias filter select + alias filter! select! end -- cgit v1.2.3