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

Commit

Permalink
Avoid uncessary Array creation and just concat to the accumulator
Browse files Browse the repository at this point in the history
  • Loading branch information
dkubb committed Sep 3, 2011
1 parent 7e02983 commit bd35cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/base.rb
Expand Up @@ -76,7 +76,7 @@ def self.giant_method_list_including_object(object)
all_modules.each_with_index do |m, i|
# Don't recurse into other Base objects' "methods" method
next if m.is_a?(Base) || m < Base || m == Base
methods += m.methods + m.instance_methods
methods.concat(m.methods).concat(m.instance_methods)
end
methods
end
Expand Down

0 comments on commit bd35cfa

Please sign in to comment.