aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-08-08 10:53:00 -0500
committerJack Nagel2014-08-08 10:53:00 -0500
commitdfe1de7acd3d61d3a7bf4778ef9fde1a43a6c757 (patch)
tree858dcc3fd4fb39e45b0894d696c4561097029668 /Library
parent392407c5f1d3179d8474cb5f3ffc7fd873428cc6 (diff)
downloadbrew-dfe1de7acd3d61d3a7bf4778ef9fde1a43a6c757.tar.bz2
Delegate homepage to the class instead of storing it on the instance
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index cd4db3e6c..7b591066c 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -16,7 +16,7 @@ class Formula
include Utils::Inreplace
extend Enumerable
- attr_reader :name, :path, :homepage
+ attr_reader :name, :path
attr_reader :stable, :devel, :head, :active_spec
attr_reader :pkg_version, :revision
@@ -29,7 +29,6 @@ class Formula
def initialize(name, path, spec)
@name = name
@path = path
- @homepage = self.class.homepage
@revision = self.class.revision || 0
set_spec :stable
@@ -68,6 +67,10 @@ class Formula
Bottle.new(self, active_spec.bottle_specification) if active_spec.bottled?
end
+ def homepage
+ self.class.homepage
+ end
+
def url; active_spec.url; end
def version; active_spec.version; end