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

* lib/irb.rb lib/irb/* doc/irb: IRB 0.9.5

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
keiju 2005-04-19 19:24:59 +00:00
parent 40906c5d5d
commit f9fb21448b
34 changed files with 477 additions and 302 deletions

View file

@ -1,9 +1,9 @@
#
# irb.rb - irb main module
# $Release Version: 0.9 $
# $Release Version: 0.9.5 $
# $Revision$
# $Date$
# by Keiju ISHITSUKA(keiju@ishitsuka.com)
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
@ -88,8 +88,8 @@ module IRB
# irb interpriter main routine
#
class Irb
def initialize(workspace = nil, input_method = nil)
@context = Context.new(self, workspace, input_method)
def initialize(workspace = nil, input_method = nil, output_method = nil)
@context = Context.new(self, workspace, input_method, output_method)
@context.main.extend ExtendCommandBundle
@signal_status = :IN_IRB
@ -106,6 +106,8 @@ module IRB
f = @context.prompt_s
elsif continue
f = @context.prompt_c
elsif indent > 0
f = @context.prompt_n
else @context.prompt_i
f = @context.prompt_i
end