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

ruby-changes:28720

From: nobu <ko1@a...>
Date: Thu, 16 May 2013 01:52:04 +0900 (JST)
Subject: [ruby-changes:28720] nobu:r40772 (trunk): yaml_tree.rb: fix warning message

nobu	2013-05-16 01:51:54 +0900 (Thu, 16 May 2013)

  New Revision: 40772

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

  Log:
    yaml_tree.rb: fix warning message
    
    * ext/psych/lib/psych/visitors/yaml_tree.rb: fix warning message.
      Class.create does not exist.

  Modified files:
    trunk/ext/psych/lib/psych/visitors/yaml_tree.rb

Index: ext/psych/lib/psych/visitors/yaml_tree.rb
===================================================================
--- ext/psych/lib/psych/visitors/yaml_tree.rb	(revision 40771)
+++ ext/psych/lib/psych/visitors/yaml_tree.rb	(revision 40772)
@@ -51,7 +51,7 @@ module Psych https://github.com/ruby/ruby/blob/trunk/ext/psych/lib/psych/visitors/yaml_tree.rb#L51
         return super if emitter && ss && options
 
         if $VERBOSE
-          warn "This API is deprecated, please pass an emitter, scalar scanner, and options or call #{self.class}.create() (#{caller.first})"
+          warn "This API is deprecated, please pass an emitter, scalar scanner, and options or call #{class}.create() (#{caller.first})"
         end
         create emitter, ss
       end

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

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