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/cmd/audit.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Library/Homebrew/cmd/audit.rb') 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 -- cgit v1.2.3