From 3ec9dc3200bfe27e9d4ea1910bba577bc23f7302 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Fri, 8 Mar 2013 21:06:04 +0900 Subject: [PATCH] Reduce warnings from the interpreter. (method redefinition) --- lib/http/cookie.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/http/cookie.rb b/lib/http/cookie.rb index e4d1bfa..ec01ae2 100644 --- a/lib/http/cookie.rb +++ b/lib/http/cookie.rb @@ -47,8 +47,8 @@ class HTTP::Cookie include URIFix if defined?(URIFix) - attr_accessor :name, :value, :version - attr_accessor :domain, :path, :secure + attr_reader :name, :domain, :path, :origin + attr_accessor :secure, :value, :version attr_reader :domain_name attr_accessor :comment, :max_age @@ -57,8 +57,6 @@ class HTTP::Cookie attr_accessor :created_at attr_accessor :accessed_at - attr_accessor :origin - # :call-seq: # new(name, value) # new(name, value, attr_hash)