Skip to content

Commit

Permalink
Merge pull request garybernhardt#4 from dkubb/master
Browse files Browse the repository at this point in the history
DRY code
  • Loading branch information
garybernhardt committed Sep 4, 2011
2 parents 23c7487 + 5e53960 commit 6afa2b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/base.rb
Expand Up @@ -17,7 +17,7 @@ def self.all_modules
end

def self.should_extract_from?(mod)
return false if (mod < Base || mod == Base || mod.is_a?(Base))
return false if module_is_a_base?(mod)
return mod.is_a?(Module) && mod != Kernel
end

Expand Down

0 comments on commit 6afa2b4

Please sign in to comment.