diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-09-16 07:55:18 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-09-16 10:10:09 +0900 |
| commit | 57a0132b41920ea14b903113586bf970c8210efa (patch) | |
| tree | 6f4d325d1d27aab6205857c68f09f0cfa5574e0d /mrbgems/mruby-hash-ext | |
| parent | f4117d81d2fef1276836c1f6e13ceba7d83c9d7b (diff) | |
| download | mruby-57a0132b41920ea14b903113586bf970c8210efa.tar.gz mruby-57a0132b41920ea14b903113586bf970c8210efa.zip | |
Add `filter` aliases for `Enumerable` and `Hash`.
Diffstat (limited to 'mrbgems/mruby-hash-ext')
| -rw-r--r-- | mrbgems/mruby-hash-ext/mrblib/hash.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
