aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/audit.rb
diff options
context:
space:
mode:
authorJack Nagel2013-02-17 22:52:39 -0600
committerJack Nagel2013-02-18 12:13:34 -0600
commitf172d3a6eb3c78be87dc3f58786a7db78cd12fca (patch)
tree62043c4d38ed4519169608fdad71595bceaab928 /Library/Homebrew/cmd/audit.rb
parentbaffb31aab16e30c850686d42a574495d51cc396 (diff)
downloadbrew-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/cmd/audit.rb')
-rw-r--r--Library/Homebrew/cmd/audit.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index c8ebad17a..f880db36b 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -73,9 +73,7 @@ class FormulaText
end
class FormulaAuditor
- attr :f
- attr :text
- attr :problems, true
+ attr_reader :f, :text, :problems
BUILD_TIME_DEPS = %W[
autoconf