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

ruby-changes:26572

From: keiju <ko1@a...>
Date: Wed, 26 Dec 2012 23:29:13 +0900 (JST)
Subject: [ruby-changes:26572] keiju:r38623 (trunk): * lib/irb/context.rb: IRB::Context#use_readline= has been obsolate

keiju	2012-12-26 23:29:01 +0900 (Wed, 26 Dec 2012)

  New Revision: 38623

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

  Log:
    * lib/irb/context.rb: IRB::Context#use_readline= has been obsolate
      [Bug #6339].

  Modified files:
    trunk/ChangeLog
    trunk/lib/irb/context.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38622)
+++ ChangeLog	(revision 38623)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Dec 26 23:26:15 2012  Keiju Ishitsuka  <keiju@i...>
+
+	* lib/irb/context.rb: IRB::Context#use_readline= has been obsolate
+	  [Bug #6339].
+
 Wed Dec 26 21:32:46 2012  Keiju Ishitsuka  <keiju@i...>
 
 	* lib/irb/context.rb: make a correct prompt from
Index: lib/irb/context.rb
===================================================================
--- lib/irb/context.rb	(revision 38622)
+++ lib/irb/context.rb	(revision 38623)
@@ -335,21 +335,15 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb/context.rb#L335
       @inspect_mode
     end
 
-
-    # Sets whether or not to use the Readline extension
-    #
-    # +true+::  enables +Readline+
-    # +false+:: disables +Readline+
-    # +nil+::   intends to use +Readline+,
-    #           except for when +inf-ruby-mode+ is active.
+    # Obsolate method.
     #
-    # Can also be set using the +--noreadline+ and +--readline+ command line
+    # Can be set using the +--noreadline+ and +--readline+ command line
     # options.
     #
     # See IRB@Command+line+options for more command line options.
     def use_readline=(opt)
-      @use_readline = opt
-      print "use readline module\n" if @use_readline
+      print "This method is obsolete."
+      print "Do nothing."
     end
 
     # Sets the debug level of irb

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

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