diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-30 09:58:23 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-30 09:58:23 +0900 |
| commit | 2cb54e4b9d523e85b65a30b7af593791e8ac83f0 (patch) | |
| tree | d9535d70ba74920783864fa6372ec471aca5af91 /mrbgems/mruby-enum-ext/mrblib/enum.rb | |
| parent | 0bdc87d2396a607d05bad06e4e6d2d0bc0bc8f76 (diff) | |
| parent | ab67c57f652c7c3a64ec4f4dc73259a14fb1b545 (diff) | |
| download | mruby-2cb54e4b9d523e85b65a30b7af593791e8ac83f0.tar.gz mruby-2cb54e4b9d523e85b65a30b7af593791e8ac83f0.zip | |
Merge pull request #2160 from nobu/space
Space
Diffstat (limited to 'mrbgems/mruby-enum-ext/mrblib/enum.rb')
| -rw-r--r-- | mrbgems/mruby-enum-ext/mrblib/enum.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mrbgems/mruby-enum-ext/mrblib/enum.rb b/mrbgems/mruby-enum-ext/mrblib/enum.rb index 22c793108..5abb75d54 100644 --- a/mrbgems/mruby-enum-ext/mrblib/enum.rb +++ b/mrbgems/mruby-enum-ext/mrblib/enum.rb @@ -92,7 +92,7 @@ module Enumerable end ary end - + ## # call-seq: # enum.each_cons(n) {...} -> nil @@ -192,7 +192,7 @@ module Enumerable return to_enum :sort_by unless block_given? ary = [] - orig = [] + orig = [] self.each_with_index{|e, i| orig.push(e) ary.push([block.call(e), i]) @@ -253,7 +253,7 @@ module Enumerable self.each { count += 1 } else self.each do |*val| - count += 1 if val.__svalue == v + count += 1 if val.__svalue == v end end end |
