aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorJack Nagel2013-05-10 23:45:06 -0500
committerJack Nagel2013-05-10 23:45:06 -0500
commit7629d4485e9094a758ea9dfdab78f484f36c1714 (patch)
tree2eee040589494e24ba94b0e781cfe871736a2622 /Library/Homebrew/formula.rb
parent12f4ccd7f350cab238dab88a7a6a1a7d55455185 (diff)
downloadbrew-7629d4485e9094a758ea9dfdab78f484f36c1714.tar.bz2
Use Enumerable#grep
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 8973728b4..dafb18ed0 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -489,7 +489,7 @@ class Formula
end
def conflicts
- requirements.select { |r| r.is_a? ConflictRequirement }
+ requirements.grep(ConflictRequirement)
end
# Returns a list of Dependency objects in an installable order, which