1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/irb/context.rb: IRB::Context#use_readline= has been obsolate

[Bug #6339].



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
keiju 2012-12-26 14:29:01 +00:00
parent a03c075845
commit 5983e1be10
2 changed files with 9 additions and 10 deletions

View file

@ -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> Wed Dec 26 21:32:46 2012 Keiju Ishitsuka <keiju@ishitsuka.com>
* lib/irb/context.rb: make a correct prompt from * lib/irb/context.rb: make a correct prompt from

View file

@ -335,21 +335,15 @@ module IRB
@inspect_mode @inspect_mode
end end
# Obsolate method.
# Sets whether or not to use the Readline extension
# #
# +true+:: enables +Readline+ # Can be set using the +--noreadline+ and +--readline+ command line
# +false+:: disables +Readline+
# +nil+:: intends to use +Readline+,
# except for when +inf-ruby-mode+ is active.
#
# Can also be set using the +--noreadline+ and +--readline+ command line
# options. # options.
# #
# See IRB@Command+line+options for more command line options. # See IRB@Command+line+options for more command line options.
def use_readline=(opt) def use_readline=(opt)
@use_readline = opt print "This method is obsolete."
print "use readline module\n" if @use_readline print "Do nothing."
end end
# Sets the debug level of irb # Sets the debug level of irb