diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-08-09 23:34:38 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-08-09 23:34:38 +0900 |
| commit | 2b74fa54de355753d2aa2226e73375dc336a34e3 (patch) | |
| tree | 0a87c500d9a42c1a053c9a4cf9eb8c056b8530e9 /tasks/ruby_ext.rake | |
| parent | f3f54cb619d7b8542052cc8783e7b830ece737b9 (diff) | |
| parent | 6526bb10f0c60f6f1d17f873214243ca7ec1730a (diff) | |
| download | mruby-2b74fa54de355753d2aa2226e73375dc336a34e3.tar.gz mruby-2b74fa54de355753d2aa2226e73375dc336a34e3.zip | |
Merge pull request #2503 from cremno/dont-always-generate-gem-functions
don't always generate gem functions
Diffstat (limited to 'tasks/ruby_ext.rake')
| -rw-r--r-- | tasks/ruby_ext.rake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tasks/ruby_ext.rake b/tasks/ruby_ext.rake index 38dfff0a3..61fa91d97 100644 --- a/tasks/ruby_ext.rake +++ b/tasks/ruby_ext.rake @@ -42,6 +42,15 @@ class Symbol end end +module Enumerable + # Compatible with 1.9 on 1.8 + def each_with_object(memo) + return to_enum :each_with_object, memo unless block_given? + each { |obj| yield obj, memo } + memo + end +end + $pp_show = true if $verbose.nil? |
