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

ruby-changes:20571

From: kazu <ko1@a...>
Date: Fri, 22 Jul 2011 20:37:54 +0900 (JST)
Subject: [ruby-changes:20571] kazu:r32619 (trunk): * test/ruby/test_object.rb (TestObject#test_respond_to_missing):

kazu	2011-07-22 20:37:06 +0900 (Fri, 22 Jul 2011)

  New Revision: 32619

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

  Log:
    * test/ruby/test_object.rb (TestObject#test_respond_to_missing):
      2nd argument of respond_to_missing? is not optional.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_object.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32618)
+++ ChangeLog	(revision 32619)
@@ -1,3 +1,8 @@
+Fri Jul 22 20:24:38 2011  Kazuhiro NISHIYAMA  <zn@m...>
+
+	* test/ruby/test_object.rb (TestObject#test_respond_to_missing):
+	  2nd argument of respond_to_missing? is not optional.
+
 Fri Jul 22 19:05:47 2011  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y (rb_enc_symname2_p): get rid of potential out-of-bound
Index: test/ruby/test_object.rb
===================================================================
--- test/ruby/test_object.rb	(revision 32618)
+++ test/ruby/test_object.rb	(revision 32619)
@@ -336,14 +336,14 @@
 
   def test_respond_to_missing
     c = Class.new do
-      def respond_to_missing?(id, priv=false)
+      def respond_to_missing?(id, priv)
         if id == :foobar
           true
         else
           false
         end
       end
-      def method_missing(id,*args)
+      def method_missing(id, *args)
         if id == :foobar
           return [:foo, *args]
         else

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

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