summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/irb/context.rb14
2 files changed, 9 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index df4bdc13c6..aef7839736 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Dec 26 23:26:15 2012 Keiju Ishitsuka <keiju@ishitsuka.com>
+
+ * lib/irb/context.rb: IRB::Context#use_readline= has been obsolate
+ [Bug #6339].
+
Wed Dec 26 21:32:46 2012 Keiju Ishitsuka <keiju@ishitsuka.com>
* lib/irb/context.rb: make a correct prompt from
diff --git a/lib/irb/context.rb b/lib/irb/context.rb
index d856f16c1f..833e90c2c2 100644
--- a/lib/irb/context.rb
+++ b/lib/irb/context.rb
@@ -335,21 +335,15 @@ module IRB
@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