Skip to content
Permalink
Browse files

implement this more efficiently

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Mar 24, 2013
1 parent a270d98 commit 840b618612b282ec7ac94aca96c9a4ea9dce2e68
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib-topaz/array.rb
@@ -304,7 +304,11 @@ def reverse
end

def reverse_each(&block)
reverse.each(&block)
self
i = self.length - 1
while i >= 0
yield self[i]
i -= 1
end
return self
end
end

0 comments on commit 840b618

Please sign in to comment.
You can’t perform that action at this time.