mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* doc/irb/irb.rd.ja: a lost of release IRB 0.9.5.
* lib/irb/slex.rb: bug fix by [ruby-core :04707]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8e8cd649be
commit
ff958cd44e
3 changed files with 13 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
Thu Apr 14 05:35:45 2005 Keiju Ishitsuka <keiju@gentoo>
|
||||||
|
|
||||||
|
* doc/irb/irb.rd.ja: a lost of release IRB 0.9.5.
|
||||||
|
|
||||||
|
* lib/irb/slex.rb: bug fix by [ruby-core :04707].
|
||||||
|
|
||||||
|
|
||||||
Thu Apr 14 00:20:31 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
|
Thu Apr 14 00:20:31 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
|
||||||
* bin/irb lib/irb.rb lib/irb/...: IRB 0.9.5.
|
* bin/irb lib/irb.rb lib/irb/...: IRB 0.9.5.
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
irb -- interactive ruby
|
irb -- interactive ruby
|
||||||
$Release Version: 0.9 $
|
$Release Version: 0.9.5 $
|
||||||
$Revision$
|
$Revision$
|
||||||
$Date$
|
$Date$
|
||||||
by Keiju ISHITSUKA(keiju@ishitsuka.com)
|
by Keiju ISHITSUKA(keiju@ruby-lang.org)
|
||||||
=begin
|
=begin
|
||||||
= irbとは?
|
= irbとは?
|
||||||
|
|
||||||
|
@ -112,6 +112,7 @@ irb
|
||||||
|
|
||||||
IRB.conf[:PROMPT][:MY_PROMPT] = { # プロンプトモードの名前
|
IRB.conf[:PROMPT][:MY_PROMPT] = { # プロンプトモードの名前
|
||||||
:PROMPT_I => nil, # 通常のプロンプト
|
:PROMPT_I => nil, # 通常のプロンプト
|
||||||
|
:PROMPT_N => nil, # 継続行のプロンプト
|
||||||
:PROMPT_S => nil, # 文字列などの継続行のプロンプト
|
:PROMPT_S => nil, # 文字列などの継続行のプロンプト
|
||||||
:PROMPT_C => nil, # 式が継続している時のプロンプト
|
:PROMPT_C => nil, # 式が継続している時のプロンプト
|
||||||
:RETURN => " ==>%s\n" # リターン時のプロンプト
|
:RETURN => " ==>%s\n" # リターン時のプロンプト
|
||||||
|
@ -126,7 +127,7 @@ OK
|
||||||
|
|
||||||
IRB.conf[:PROMPT_MODE] = :MY_PROMPT
|
IRB.conf[:PROMPT_MODE] = :MY_PROMPT
|
||||||
|
|
||||||
PROMPT_I, PROMPT_S, PROMPT_Cは, フォーマットを指定します.
|
PROMPT_I, PROMPT_N, PROMPT_S, PROMPT_Cは, フォーマットを指定します.
|
||||||
|
|
||||||
%N 起動しているコマンド名が出力される.
|
%N 起動しているコマンド名が出力される.
|
||||||
%m mainオブジェクト(self)がto_sで出力される.
|
%m mainオブジェクト(self)がto_sで出力される.
|
||||||
|
@ -141,6 +142,7 @@ PROMPT_I, PROMPT_S, PROMPT_C
|
||||||
|
|
||||||
IRB.conf[:PROMPT_MODE][:DEFAULT] = {
|
IRB.conf[:PROMPT_MODE][:DEFAULT] = {
|
||||||
:PROMPT_I => "%N(%m):%03n:%i> ",
|
:PROMPT_I => "%N(%m):%03n:%i> ",
|
||||||
|
:PROMPT_N => "%N(%m):%03n:%i> ",
|
||||||
:PROMPT_S => "%N(%m):%03n:%i%l ",
|
:PROMPT_S => "%N(%m):%03n:%i%l ",
|
||||||
:PROMPT_C => "%N(%m):%03n:%i* ",
|
:PROMPT_C => "%N(%m):%03n:%i* ",
|
||||||
:RETURN => "%s\n"
|
:RETURN => "%s\n"
|
||||||
|
|
|
@ -224,7 +224,7 @@ module IRB
|
||||||
else
|
else
|
||||||
io.ungetc ch
|
io.ungetc ch
|
||||||
if @postproc and @preproc.nil? || @preproc.call(op, io)
|
if @postproc and @preproc.nil? || @preproc.call(op, io)
|
||||||
DOUT.exec_if(D_DETAIL) {printf "op2: %s\n", op.inspect}
|
DOUT.exec_if{D_DETAIL.printf "op2: %s\n", op.inspect}
|
||||||
@postproc.call(op, io)
|
@postproc.call(op, io)
|
||||||
else
|
else
|
||||||
nil
|
nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue