From f172d3a6eb3c78be87dc3f58786a7db78cd12fca Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 17 Feb 2013 22:52:39 -0600 Subject: Don't use deprecated form of attr The form "attr :name, true" is deprecated and causes Ruby to emit a warning in verbose mode. Using attr_{reader,writer,accessor} is more clear anyway, so do so. --- Library/Homebrew/formula_installer.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Library/Homebrew/formula_installer.rb') diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 1008bc2e6..8dbd318a9 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -6,12 +6,9 @@ require 'bottles' require 'caveats' class FormulaInstaller - attr :f - attr :tab, true - attr :options, true - attr :show_summary_heading, true - attr :ignore_deps, true - attr :show_header, true + attr_reader :f + attr_accessor :tab, :options, :ignore_deps + attr_accessor :show_summary_heading, :show_header def initialize ff @f = ff -- cgit v1.2.3