diff options
| author | Kenji Okimoto <[email protected]> | 2017-04-03 16:46:47 +0900 |
|---|---|---|
| committer | Kenji Okimoto <[email protected]> | 2017-04-03 16:46:47 +0900 |
| commit | cff54ab2f3de9143cbbb8094f833b28c7b94916d (patch) | |
| tree | 76a94a155c6bd2e49aa09e78627919b084dd614b /mrbgems/mruby-enum-ext/mrblib | |
| parent | 666787beb23637e4c1856011e04cef86380fdb2d (diff) | |
| download | mruby-cff54ab2f3de9143cbbb8094f833b28c7b94916d.tar.gz mruby-cff54ab2f3de9143cbbb8094f833b28c7b94916d.zip | |
Change return value of Enumerable#each_slice
More compatibility to CRuby.
Diffstat (limited to 'mrbgems/mruby-enum-ext/mrblib')
| -rw-r--r-- | mrbgems/mruby-enum-ext/mrblib/enum.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mrbgems/mruby-enum-ext/mrblib/enum.rb b/mrbgems/mruby-enum-ext/mrblib/enum.rb index 113b470a9..99d94233c 100644 --- a/mrbgems/mruby-enum-ext/mrblib/enum.rb +++ b/mrbgems/mruby-enum-ext/mrblib/enum.rb @@ -154,6 +154,7 @@ module Enumerable end end block.call(ary) unless ary.empty? + nil end ## |
