Sha256: 4cdd8925c2ede1a15df478999abe770a40fbfab245e981483080b5ee2c0ceed7

Contents?: true

Size: 185 Bytes

Versions: 11

Compression:

Stored size: 185 Bytes

Contents

class Array
  def reverse_each
    return to_enum(:reverse_each) unless block_given?

    i = size - 1
    while i >= 0
      yield self[i]
      i -= 1
    end
    
    self
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
motion-support-1.2.1 motion/_stdlib/array.rb
motion-support-1.1.1 motion/_stdlib/array.rb
motion-support-1.2.0 motion/_stdlib/array.rb
motion-support-1.1.0 motion/_stdlib/array.rb
motion-support-1.0.0 motion/_stdlib/array.rb
motion-support-0.3.0 motion/_stdlib/array.rb
motion_blender-support-0.2.8 motion/_stdlib/array.rb
motion_blender-support-0.2.7 motion/_stdlib/array.rb
motion-support-0.2.6 motion/_stdlib/array.rb
motion-support-0.2.5 motion/_stdlib/array.rb
motion-support-0.2.4 motion/_stdlib/array.rb