Simplify extending Formula with Enumerable

This commit is contained in:
Jack Nagel 2014-06-22 15:00:15 -05:00
parent 4b0255f7aa
commit 90183877ff

View File

@ -14,6 +14,7 @@ require 'pkg_version'
class Formula
include FileUtils
include Utils::Inreplace
extend Enumerable
attr_reader :name, :path, :homepage, :build
attr_reader :stable, :devel, :head, :active_spec
@ -358,9 +359,6 @@ class Formula
end
end
end
class << self
include Enumerable
end
# An array of all installed formulae
def self.installed