aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/create.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/create.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/create.rb')
-rw-r--r--Library/Homebrew/cmd/create.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/Library/Homebrew/cmd/create.rb b/Library/Homebrew/cmd/create.rb
index 5565cfb11..9f215a0f2 100644
--- a/Library/Homebrew/cmd/create.rb
+++ b/Library/Homebrew/cmd/create.rb
@@ -71,12 +71,8 @@ module Homebrew extend self
end
class FormulaCreator
- attr :url
- attr :sha1
- attr :name, true
- attr :version, true
- attr :path, true
- attr :mode, true
+ attr_reader :url, :sha1
+ attr_accessor :name, :version, :path, :mode
def url= url
@url = url