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

ruby-changes:2697

From: ko1@a...
Date: 11 Dec 2007 02:25:17 +0900
Subject: [ruby-changes:2697] matz - Ruby:r14188 (trunk): * eval.c (rb_method_missing): RDoc update patch from Hugh Sasse

matz	2007-12-11 02:24:52 +0900 (Tue, 11 Dec 2007)

  New Revision: 14188

  Modified files:
    trunk/ChangeLog
    trunk/eval.c

  Log:
    * eval.c (rb_method_missing): RDoc update patch from Hugh Sasse
      <hgs AT dmu.ac.uk>.  [ruby-core:12932]

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14188&r2=14187
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/eval.c?r1=14188&r2=14187

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 14187)
+++ ChangeLog	(revision 14188)
@@ -1,3 +1,8 @@
+Tue Dec 11 02:23:32 2007  Yukihiro Matsumoto  <matz@r...>
+
+	* eval.c (rb_method_missing): RDoc update patch from Hugh Sasse
+	  <hgs AT dmu.ac.uk>.  [ruby-core:12932]
+
 Tue Dec 11 01:51:34 2007  Yukihiro Matsumoto  <matz@r...>
 
 	* lib/net/http.rb (Net::HTTP::get): now supports gzip
Index: eval.c
===================================================================
--- eval.c	(revision 14187)
+++ eval.c	(revision 14188)
@@ -1269,6 +1269,9 @@
  *  are any arguments that were passed to it. By default, the interpreter
  *  raises an error when this method is called. However, it is possible
  *  to override the method to provide more dynamic behavior.
+ *  If it is decided that a particular method should not be handled, then
+ *  <i>super</i> should be called, so that ancestors can pick up the
+ *  missing method.
  *  The example below creates
  *  a class <code>Roman</code>, which responds to methods with names
  *  consisting of roman numerals, returning the corresponding integer

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

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