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

ruby-changes:18905

From: tenderlove <ko1@a...>
Date: Mon, 21 Feb 2011 10:49:49 +0900 (JST)
Subject: [ruby-changes:18905] Ruby:r30930 (trunk): moving autoload to require so that the correct files are required

tenderlove	2011-02-21 10:49:41 +0900 (Mon, 21 Feb 2011)

  New Revision: 30930

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

  Log:
    moving autoload to require so that the correct files are required

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

Index: ext/psych/lib/psych.rb
===================================================================
--- ext/psych/lib/psych.rb	(revision 30929)
+++ ext/psych/lib/psych.rb	(revision 30930)
@@ -9,6 +9,7 @@
 require 'psych/coder'
 require 'psych/core_ext'
 require 'psych/deprecated'
+require 'psych/json'
 
 ###
 # = Overview
@@ -97,7 +98,6 @@
   end
 
   autoload :Stream, 'psych/stream'
-  autoload :JSON, 'psych/json'
 
   ###
   # Load +yaml+ in to a Ruby data structure.  If multiple documents are

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

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