Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
Replaced Enumerable#each_with_index with Array#each since the index w…
Browse files Browse the repository at this point in the history
…as not used
  • Loading branch information
dkubb committed Sep 3, 2011
1 parent bd35cfa commit 0afaf3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/base.rb
Expand Up @@ -73,7 +73,7 @@ def methods
# INHERIT ALL THE METHODS!
def self.giant_method_list_including_object(object)
methods = []
all_modules.each_with_index do |m, i|
all_modules.each do |m|
# Don't recurse into other Base objects' "methods" method
next if m.is_a?(Base) || m < Base || m == Base
methods.concat(m.methods).concat(m.instance_methods)
Expand Down

0 comments on commit 0afaf3a

Please sign in to comment.