aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/tab.rb
diff options
context:
space:
mode:
authorMike McQuaid2015-05-27 09:57:41 +0100
committerMike McQuaid2015-05-27 10:21:45 +0100
commitf55257306e609859cba568528abea45d78f1844c (patch)
treeb64f8657067822c1735d269f5ad640c1b7d46ed0 /Library/Homebrew/tab.rb
parentef08db539b2685fd99367a997d47381d39339df8 (diff)
downloadbrew-f55257306e609859cba568528abea45d78f1844c.tar.bz2
tab: add method to set tap.
Diffstat (limited to 'Library/Homebrew/tab.rb')
-rw-r--r--Library/Homebrew/tab.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb
index 90bf5b7b8..efc746628 100644
--- a/Library/Homebrew/tab.rb
+++ b/Library/Homebrew/tab.rb
@@ -170,6 +170,10 @@ class Tab < OpenStruct
source["tap"]
end
+ def tap=(tap)
+ source["tap"] = tap
+ end
+
def to_json
attributes = {
"used_options" => used_options.as_flags,