[前][次][番号順一覧][スレッド一覧]

ruby-changes:28992

From: xibbar <ko1@a...>
Date: Mon, 3 Jun 2013 11:38:41 +0900 (JST)
Subject: [ruby-changes:28992] xibbar:r41044 (trunk): * lib/cgi/cookie.rb (inspect): add inspect for debug.

xibbar	2013-06-03 11:38:32 +0900 (Mon, 03 Jun 2013)

  New Revision: 41044

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41044

  Log:
    * lib/cgi/cookie.rb (inspect): add inspect for debug.

  Modified files:
    trunk/lib/cgi/cookie.rb

Index: lib/cgi/cookie.rb
===================================================================
--- lib/cgi/cookie.rb	(revision 41043)
+++ lib/cgi/cookie.rb	(revision 41044)
@@ -159,6 +159,11 @@ class CGI https://github.com/ruby/ruby/blob/trunk/lib/cgi/cookie.rb#L159
       cookies
     end
 
+    # A summary of cookie string.
+    def inspect
+      "#<CGI::Cookie: #{self.to_s.inspect}>"
+    end
+
   end # class Cookie
 end
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]