aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/compat/compatibility.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/compat/compatibility.rb b/Library/Homebrew/compat/compatibility.rb
index 3f0f23766..879042fd4 100644
--- a/Library/Homebrew/compat/compatibility.rb
+++ b/Library/Homebrew/compat/compatibility.rb
@@ -93,7 +93,9 @@ class Formula
end
class << self
- attr_rw :bottle_sha1
+ def bottle_sha1 val=nil
+ val.nil? ? @bottle_sha1 : @bottle_sha1 = val
+ end
end
end