summaryrefslogtreecommitdiff
path: root/lib/irb.rb
diff options
context:
space:
mode:
authorkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-13 15:27:09 +0000
committerkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-13 15:27:09 +0000
commit622b522047ea7bdb716ec87131d08400ba41e8b7 (patch)
tree44dc0e11d46e0083f3f1b0a5b1789051f2b07e13 /lib/irb.rb
parentc56355fbdcaac7a55319f63416fcc19fbad89670 (diff)
* bin/irb lib/irb.rb lib/irb/...: IRB 0.9.5.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb.rb')
-rw-r--r--lib/irb.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/irb.rb b/lib/irb.rb
index 1e59d6f669..5cacbf859e 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -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