diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index 36ec552273..52b74e5c92 100644 --- a/Library/Homebrew/tab.rb +++ b/Library/Homebrew/tab.rb @@ -31,9 +31,9 @@ class Tab < OpenStruct end def self.from_file path - tab = Tab.new Utils::JSON.load(File.read(path)) - tab.tabfile = path - tab + attributes = Utils::JSON.load(File.read(path)) + attributes[:tabfile] = path + new(attributes) end def self.for_keg keg