diff options
| author | Jack Nagel | 2013-02-17 22:52:39 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-02-18 12:13:34 -0600 |
| commit | f172d3a6eb3c78be87dc3f58786a7db78cd12fca (patch) | |
| tree | 62043c4d38ed4519169608fdad71595bceaab928 /Library/Homebrew/formula_installer.rb | |
| parent | baffb31aab16e30c850686d42a574495d51cc396 (diff) | |
| download | brew-f172d3a6eb3c78be87dc3f58786a7db78cd12fca.tar.bz2 | |
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.
Diffstat (limited to 'Library/Homebrew/formula_installer.rb')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 9 |
1 files changed, 3 insertions, 6 deletions
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 |
