2001-04-30 13:38:21 -04:00
irb -- interactive ruby
$Release Version: 0.6 $
$Revision$
$Date$
by Keiju ISHITSUKA(keiju@ishitsuka.com)
==begin
2001-05-07 19:35:09 -04:00
= irb<72> Ȥ<EFBFBD> ?
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
irb<EFBFBD> <EFBFBD> interactive ruby<62> <79> ά<EFBFBD> Ǥ<EFBFBD> . ruby<62> μ<EFBFBD> <CEBC> <EFBFBD> ɸ<EFBFBD> <C9B8> <EFBFBD> <EFBFBD> <EFBFBD> Ϥ<EFBFBD> <CFA4> <EFBFBD> <EFBFBD> <EFBFBD> ñ<EFBFBD> <C3B1> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> /<2F> ¹Ԥ<C2B9>
<EFBFBD> 뤿<EFBFBD> <EFBFBD> <EFBFBD> Υ ġ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ǥ<EFBFBD> .
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
= <20> <> ư
2001-04-30 13:38:21 -04:00
% ruby -r irb -e0
% irb
2001-05-07 19:35:09 -04:00
<EFBFBD> Τ <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 줫<EFBFBD> ǹԤʤ<EFBFBD> <EFBFBD> ޤ<EFBFBD> . <20> <> <EFBFBD> Ԥξ<D4A4> <CEBE> <EFBFBD> irb<72> ؤΥ <D8A4> <CEA5> ץ<EFBFBD> <D7A5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , <20> ʲ<EFBFBD> <CAB2> Τ 褦<CEA4> <E8A4A6>
<EFBFBD> ʤ<EFBFBD> <EFBFBD> ޤ<EFBFBD> .
2001-04-30 13:38:21 -04:00
% ruby -r irb -e0 -- -v
2001-05-07 19:35:09 -04:00
= <20> Ȥ<EFBFBD> <C8A4> <EFBFBD>
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
irb<EFBFBD> λȤ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , Ruby<62> <79> <EFBFBD> <EFBFBD> <EFBFBD> Τ äƤ<C3A4> <C6A4> <EFBFBD> <EFBFBD> Ф<EFBFBD> <D0A4> <EFBFBD> <EFBFBD> äƴ<C3A4> ñ<EFBFBD> Ǥ<EFBFBD> . <20> <> <EFBFBD> <EFBFBD> Ū<EFBFBD> ˤ<EFBFBD> irb <20> <>
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ޥ<EFBFBD> <EFBFBD> ɤ<EFBFBD> <EFBFBD> ¹Ԥ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ǥ<EFBFBD> . irb<72> <62> <EFBFBD> ¹Ԥ<C2B9> <D4A4> <EFBFBD> <EFBFBD> <EFBFBD> , <20> ʲ<EFBFBD> <CAB2> Τ 褦<CEA4> ʥץ<CAA5> <D7A5> <EFBFBD> <EFBFBD> <EFBFBD>
<EFBFBD> Ȥ<EFBFBD> ɽ<EFBFBD> <EFBFBD> <EFBFBD> Ƥ<EFBFBD> <EFBFBD> ޤ<EFBFBD> . <20> <> <EFBFBD> <EFBFBD> , ruby<62> μ<EFBFBD> <CEBC> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ʋ<EFBFBD> <C6B2> <EFBFBD> <EFBFBD> <EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 뤷<EFBFBD> <EBA4B7> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ǽ¹<C7BC>
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ޤ<EFBFBD> .
2001-04-30 13:38:21 -04:00
dim% irb
irb(main):001:0> 1+2
3
irb(main):002:0> class Foo
irb(main):003:1> def foo
irb(main):004:2> print 1
irb(main):005:2> end
irb(main):006:1> end
nil
irb(main):007:0>
2001-05-07 19:35:09 -04:00
<EFBFBD> ޤ<EFBFBD> , irb<72> <62> Readline<6E> ⥸<EFBFBD> 塼<EFBFBD> <E5A1BC> <EFBFBD> ˤ<EFBFBD> <CBA4> б <EFBFBD> <D0B1> <EFBFBD> <EFBFBD> Ƥ<EFBFBD> <C6A4> ޤ<EFBFBD> . Readline<6E> ⥸<EFBFBD> 塼<EFBFBD> 뤬
<EFBFBD> <EFBFBD> <EFBFBD> ȡ<EFBFBD> <EFBFBD> 뤵<EFBFBD> <EFBFBD> <EFBFBD> Ƥ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ˤ<EFBFBD> , <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ȥ<EFBFBD> <C8A4> Τ <EFBFBD> ɸ<EFBFBD> <C9B8> <EFBFBD> <EFBFBD> ư<EFBFBD> <C6B0> <EFBFBD> ˤʤ<CBA4> <CAA4> ޤ<EFBFBD> .
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
= <20> <> <EFBFBD> ޥ<EFBFBD> <DEA5> ɥ<EFBFBD> <C9A5> ץ<EFBFBD> <D7A5> <EFBFBD> <EFBFBD> <EFBFBD>
2001-04-30 13:38:21 -04:00
irb.rb [options] file_name opts
options:
2001-05-07 19:35:09 -04:00
-f ~/.irbrc <20> <> <EFBFBD> ɤ߹<C9A4> <DFB9> ޤʤ<DEA4> .
-m bc<62> ⡼<EFBFBD> <E2A1BC> (ʬ<> <CAAC> , <20> <> <EFBFBD> <EFBFBD> <EFBFBD> η<CEB7> <D7BB> <EFBFBD> <EFBFBD> Ǥ<EFBFBD> <C7A4> <EFBFBD> )
-d $DEBUG <20> <> true<75> ˤ<EFBFBD> <CBA4> <EFBFBD> (ruby -d <20> <> Ʊ<EFBFBD> <C6B1> )
-r load-module ruby -r <20> <> Ʊ<EFBFBD> <C6B1> .
--inspect <20> <> <EFBFBD> ̽<EFBFBD> <CCBD> Ϥ<EFBFBD> inspect<63> <74> <EFBFBD> Ѥ<EFBFBD> <D1A4> <EFBFBD> (bc<62> ⡼<EFBFBD> ɰʳ<C9B0> <CAB3> ϥǥե<C7A5> <D5A5> <EFBFBD> <EFBFBD> <EFBFBD> ).
--noinspect <20> <> <EFBFBD> ̽<EFBFBD> <CCBD> Ϥ<EFBFBD> inspect<63> <74> <EFBFBD> Ѥ<EFBFBD> <D1A4> ʤ<EFBFBD> .
--readline readline<6E> 饤<EFBFBD> ֥<EFBFBD> <D6A5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ѥ<EFBFBD> <D1A4> <EFBFBD> .
--noreadline readline<6E> 饤<EFBFBD> ֥<EFBFBD> <D6A5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ѥ<EFBFBD> <D1A4> ʤ<EFBFBD> . <20> ǥե<C7A5> <D5A5> <EFBFBD> <EFBFBD> Ȥ<EFBFBD> ư<EFBFBD> <C6B0> <EFBFBD> <EFBFBD> ,
inf-reuby-mode<64> ʳ<EFBFBD> <CAB3> <EFBFBD> readline<6E> 饤<EFBFBD> ֥<EFBFBD> <D6A5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ѥ<EFBFBD> <D1A4> 褦
<20> Ȥ<EFBFBD> <C8A4> <EFBFBD> .
2001-04-30 13:38:21 -04:00
--prompt prompt-mode
--prompt-mode prompt-mode
2001-05-07 19:35:09 -04:00
<20> ץ<EFBFBD> <D7A5> <EFBFBD> <EFBFBD> ץȥ⡼<C8A5> ɤ<EFBFBD> <C9A4> <EFBFBD> <EFBFBD> ؤ<EFBFBD> <D8A4> ޤ<EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ƥ<EFBFBD> <C6A4> <EFBFBD> <EFBFBD> <EFBFBD>
<20> <> <EFBFBD> <EFBFBD> <EFBFBD> ץȥ⡼<C8A5> ɤ<EFBFBD> , defalut, simple, xmp, inf-ruby<62> <79>
<20> Ѱդ<D1B0> <D5A4> <EFBFBD> <EFBFBD> Ƥ<EFBFBD> <C6A4> ޤ<EFBFBD> . <20> ǥե<C7A5> <D5A5> <EFBFBD> <EFBFBD> Ȥ<EFBFBD> default<6C> ץ<EFBFBD> <D7A5> <EFBFBD> <EFBFBD> ץȥ⡼
<20> ɤˤʤäƤ<C3A4> <C6A4> ޤ<EFBFBD> .
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
--inf-ruby-mode emacs<63> <73> inf-ruby-mode<64> ѤΥ ץ<CEA5> <D7A5> <EFBFBD> <EFBFBD> ץ<EFBFBD> ɽ<EFBFBD> <C9BD> <EFBFBD> <EFBFBD> <EFBFBD> Ԥʤ<D4A4> . <20> <>
<20> ˻<EFBFBD> <CBBB> ꤬<EFBFBD> ʤ<EFBFBD> <CAA4> ¤<EFBFBD> , readline<6E> 饤<EFBFBD> ֥<EFBFBD> <D6A5> <EFBFBD> <EFBFBD> ϻȤ<CFBB> <C8A4> ʤ<EFBFBD> <CAA4> ʤ<EFBFBD> .
2001-04-30 13:38:21 -04:00
--simple-prompt
2001-05-07 19:35:09 -04:00
<20> <> <EFBFBD> <EFBFBD> <EFBFBD> ˥<EFBFBD> <CBA5> <EFBFBD> <EFBFBD> ץ<EFBFBD> <D7A5> ʥץ<CAA5> <D7A5> <EFBFBD> <EFBFBD> ץȤ<D7A5> <C8A4> Ѥ<EFBFBD> <D1A4> <EFBFBD> <EFBFBD> ⡼<EFBFBD> ɤǤ<C9A4> .
--noprompt <20> ץ<EFBFBD> <D7A5> <EFBFBD> <EFBFBD> ץ<EFBFBD> ɽ<EFBFBD> <C9BD> <EFBFBD> <EFBFBD> <EFBFBD> Ԥʤ<D4A4> <CAA4> ʤ<EFBFBD> .
--tracer <20> <> <EFBFBD> ޥ<EFBFBD> <DEA5> ɼ¹Ի<C2B9> <D4BB> ˥ȥ졼<C8A5> <ECA1BC> <EFBFBD> <EFBFBD> <EFBFBD> Ԥʤ<D4A4> .
2001-04-30 13:38:21 -04:00
--back-trace-limit n
2001-05-07 19:35:09 -04:00
<20> Х å<D0A5> <C3A5> ȥ졼<C8A5> <ECA1BC> ɽ<EFBFBD> <C9BD> <EFBFBD> <EFBFBD> <EFBFBD> Х å<D0A5> <C3A5> ȥ졼<C8A5> <ECA1BC> <EFBFBD> <EFBFBD> Ƭ<EFBFBD> <C6AC> <EFBFBD> <EFBFBD> n, <20> <> <EFBFBD> <EFBFBD>
<20> <> <EFBFBD> <EFBFBD> n<EFBFBD> <6E> <EFBFBD> <EFBFBD> <EFBFBD> Ԥʤ<D4A4> . <20> ǥե<C7A5> <D5A5> <EFBFBD> <EFBFBD> Ȥ<EFBFBD> 16
--irb_debug n irb<72> Υ ǥХ å<D0A5> <C3A5> ǥХ å<D0A5> <C3A5> <EFBFBD> <EFBFBD> ٥ <EFBFBD> <D9A5> <EFBFBD> n<EFBFBD> <6E> <EFBFBD> <EFBFBD> <EFBFBD> ꤹ<EFBFBD> <EAA4B9> (<28> <> <EFBFBD> Ѥ<EFBFBD> <D1A4> <EFBFBD>
<20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ̵<EFBFBD> <CCB5> <EFBFBD> Ǥ<EFBFBD> <C7A4> 礦).
-v, --version irb<72> Υ С <CEA5> <D0A1> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ɽ<EFBFBD> <C9BD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
= <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ե<EFBFBD> <D5A5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 졼<EFBFBD> <ECA1BC> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
irb<EFBFBD> <EFBFBD> ư<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ``~/.irbrc''<27> <> <EFBFBD> ɤ߹<C9A4> <DFB9> ߤޤ<DFA4> . <20> ⤷¸ <E2A4B7> ߤ<EFBFBD> <DFA4> ʤ<EFBFBD> <CAA4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ,
``.irbrc'', ``irb.rc'', ``_irbrc'', ``$irbrc''<27> ν <EFBFBD> <CEBD> <EFBFBD> load<61> <64> <EFBFBD> <EFBFBD> <EFBFBD> ߤޤ<DFA4> .
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
<EFBFBD> <EFBFBD> <EFBFBD> ץ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ꤹ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , <20> ʲ<EFBFBD> <CAB2> Υ <EFBFBD> <CEA5> ޥ<EFBFBD> <DEA5> ɤǤ<C9A4> <C7A4> ǥե<C7A5> <D5A5> <EFBFBD> <EFBFBD> Ȥ<EFBFBD> ư<EFBFBD> <C6B0> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
<EFBFBD> Ǥ<EFBFBD> <EFBFBD> ޤ<EFBFBD> .
2001-04-30 13:38:21 -04:00
IRB.conf[:IRB_NAME]="irb"
IRB.conf[:MATH_MODE]=false
IRB.conf[:USE_TRACER]=false
IRB.conf[:USE_LOADER]=false
IRB.conf[:IGNORE_SIGINT]=true
IRB.conf[:IGNORE_EOF]=false
IRB.conf[:INSPECT_MODE]=nil
IRB.conf[:IRB_RC] = nil
IRB.conf[:BACK_TRACE_LIMIT]=16
IRB.conf[:USE_LOADER] = false
IRB.conf[:USE_READLINE] = nil
IRB.conf[:USE_TRACER] = false
IRB.conf[:IGNORE_SIGINT] = true
IRB.conf[:IGNORE_EOF] = false
IRB.conf[:PROMPT_MODE] = :DEFALUT
IRB.conf[:PROMPT] = {...}
IRB.conf[:DEBUG_LEVEL]=0
IRB.conf[:VERBOSE]=true
2001-05-07 19:35:09 -04:00
== <20> ץ<EFBFBD> <D7A5> <EFBFBD> <EFBFBD> ץȤ<D7A5> <C8A4> <EFBFBD> <EFBFBD> <EFBFBD>
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
<EFBFBD> ץ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ץȤ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ޥ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ˤ<EFBFBD> ,
2001-04-30 13:38:21 -04:00
IRB.conf[:PROMPT]
2001-05-07 19:35:09 -04:00
<EFBFBD> <EFBFBD> <EFBFBD> Ѥ<EFBFBD> <EFBFBD> ޤ<EFBFBD> . <20> 㤨<EFBFBD> <E3A4A8> , .irbrc<72> <63> <EFBFBD> <EFBFBD> <EFBFBD> Dz<EFBFBD> <C7B2> Τ 褦<CEA4> ʼ <EFBFBD> <CABC> Ҥ<F2B5ADBD> <D2A4> ޤ<EFBFBD> :
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
IRB.conf[:PROMPT][:MY_PROMPT] = { # <20> ץ<EFBFBD> <D7A5> <EFBFBD> <EFBFBD> ץȥ⡼<C8A5> ɤ<EFBFBD> ̾<EFBFBD> <CCBE>
:PROMPT_I => nil, # <20> ̾<EFBFBD> <CCBE> Υ ץ<CEA5> <D7A5> <EFBFBD> <EFBFBD> ץ<EFBFBD>
:PROMPT_S => nil, # ʸ<> <CAB8> <EFBFBD> <EFBFBD> <EFBFBD> ʤɤη<C9A4> ³<EFBFBD> ԤΥ ץ<CEA5> <D7A5> <EFBFBD> <EFBFBD> ץ<EFBFBD>
:PROMPT_C => nil, # <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ³<EFBFBD> <C2B3> <EFBFBD> Ƥ<EFBFBD> <C6A4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Υ ץ<CEA5> <D7A5> <EFBFBD> <EFBFBD> ץ<EFBFBD>
:RETURN => " ==>%s\n" # <20> <EFBFBD> <EAA5BF> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Υ ץ<CEA5> <D7A5> <EFBFBD> <EFBFBD> ץ<EFBFBD>
2001-04-30 13:38:21 -04:00
}
2001-05-07 19:35:09 -04:00
<EFBFBD> ץ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ץȥ⡼<EFBFBD> ɤ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ꤷ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ˤ<EFBFBD> ,
2001-04-30 13:38:21 -04:00
irb --prompt my-prompt
2001-05-07 19:35:09 -04:00
<EFBFBD> Ǥ<EFBFBD> <EFBFBD> Υ ץ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ץȥ⡼<EFBFBD> ɤǵ<EFBFBD> ư<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ޤ<EFBFBD> . <20> ޤ<EFBFBD> <DEA4> <EFBFBD> , .irbrc<72> ˲<EFBFBD> <CBB2> <EFBFBD> <EFBFBD> Ҥ<F2B5ADBD> <D2A4> Ƥ<EFBFBD>
OK<EFBFBD> Ǥ<EFBFBD> .
2001-04-30 13:38:21 -04:00
IRB.conf[:PROMPT_MODE] = :MY_PROMPT
2001-05-07 19:35:09 -04:00
PROMPT_I, PROMPT_S, PROMPT_C<5F> <43> , <20> ե<EFBFBD> <D5A5> <EFBFBD> <EFBFBD> ޥåȤ<C3A5> <C8A4> <EFBFBD> <EFBFBD> ꤷ<EFBFBD> ޤ<EFBFBD> .
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
%N <09> <> ư<EFBFBD> <C6B0> <EFBFBD> Ƥ<EFBFBD> <C6A4> 륳<EFBFBD> ޥ<EFBFBD> <DEA5> <EFBFBD> ̾<EFBFBD> <CCBE> <EFBFBD> <EFBFBD> <EFBFBD> Ϥ<EFBFBD> <CFA4> <EFBFBD> <EFBFBD> <EFBFBD> .
%m main<69> <6E> <EFBFBD> ֥<EFBFBD> <D6A5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> (self)<29> <> to_s<5F> ǽ<EFBFBD> <C7BD> Ϥ<EFBFBD> <CFA4> <EFBFBD> <EFBFBD> <EFBFBD> .
%M main<69> <6E> <EFBFBD> ֥<EFBFBD> <D6A5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> (self)<29> <> inspect<63> <74> <EFBFBD> <EFBFBD> <EFBFBD> ƽ <EFBFBD> <C6BD> Ϥ<EFBFBD> <CFA4> <EFBFBD> <EFBFBD> <EFBFBD> .
%l ʸ<> <CAB8> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Υ <EFBFBD> <CEA5> <EFBFBD> <EFBFBD> פ<EFBFBD> ɽ<EFBFBD> <C9BD> (", ', /, ], `]'<27> <> %w<> <77> <EFBFBD> <EFBFBD> <EFBFBD> λ<EFBFBD> )
%NNi <09> <> <EFBFBD> <EFBFBD> <EFBFBD> ǥ<EFBFBD> <C7A5> ȤΥ <C8A4> <CEA5> ٥ <EFBFBD> <D9A5> <EFBFBD> ɽ<EFBFBD> <C9BD> . NN<4E> Ͽ<EFBFBD> <CFBF> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> printf<74> <66> %NNd<4E> <64> Ʊ<EFBFBD> <C6B1> . <20> <>
ά<> <CEAC> ǽ
%NNn <09> <> <EFBFBD> ֹ<EFBFBD> <D6B9> <EFBFBD> ɽ<EFBFBD> <C9BD> <EFBFBD> ޤ<EFBFBD> .
2001-04-30 13:38:21 -04:00
%% %
2001-05-07 19:35:09 -04:00
<EFBFBD> 㤨<EFBFBD> <EFBFBD> , <20> ǥե<C7A5> <D5A5> <EFBFBD> <EFBFBD> ȤΥ ץ<CEA5> <D7A5> <EFBFBD> <EFBFBD> ץȥ⡼<C8A5> ɤ<EFBFBD> :
2001-04-30 13:38:21 -04:00
IRB.conf[:PROMPT_MODE][:DEFAULT] = {
:PROMPT_I => "%N(%m):%03n:%i> ",
:PROMPT_S => "%N(%m):%03n:%i%l ",
:PROMPT_C => "%N(%m):%03n:%i* ",
:RETURN => "%s\n"
}
2001-05-07 19:35:09 -04:00
<EFBFBD> ȤʤäƤ<EFBFBD> <EFBFBD> ޤ<EFBFBD> .
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
RETURN<EFBFBD> <EFBFBD> , <20> <> <EFBFBD> ߤΤ Ȥ<CEA4> <C8A4> <EFBFBD> printf<74> <66> <EFBFBD> <EFBFBD> <EFBFBD> Ǥ<EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ͤ<EFBFBD> <CDA4> Ѥ<EFBFBD> <D1A4> 뤫<EFBFBD> <EBA4AB> <EFBFBD> Τ <EFBFBD> <CEA4> ޤ<EFBFBD> <DEA4> <EFBFBD> .
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
== <20> <> <EFBFBD> <EFBFBD> irb<72> <62> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
<EFBFBD> <EFBFBD> <EFBFBD> ޥ<EFBFBD> <EFBFBD> ɥ饤<EFBFBD> ץ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> IRB.conf<6E> <66> (<28> <> <EFBFBD> <EFBFBD> )irb<72> <62> ư<EFBFBD> <C6B0> <EFBFBD> Υ ǥե<C7A5> <D5A5> <EFBFBD> <EFBFBD> Ȥ<EFBFBD>
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Τ <EFBFBD> , `5. <20> <> <EFBFBD> ޥ<EFBFBD> <DEA5> <EFBFBD> '<27> ˤ<EFBFBD> <CBA4> <EFBFBD> conf<6E> Ǹ<EFBFBD> <C7B8> ̤<EFBFBD> (<28> <> <EFBFBD> <EFBFBD> )irb<72> <62> <EFBFBD> <EFBFBD> <EFBFBD> ꤬<EFBFBD> <EAA4AC>
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 褦<EFBFBD> ˤʤäƤ<EFBFBD> <EFBFBD> ޤ<EFBFBD> .
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
IRB.conf[:IRB_RC]<5D> <> proc<6F> <63> <EFBFBD> <EFBFBD> <EFBFBD> ꤵ<EFBFBD> <EAA4B5> <EFBFBD> Ƥ<EFBFBD> <C6A4> <EFBFBD> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD> <EFBFBD> irb<72> <62> <EFBFBD> <EFBFBD> ư<EFBFBD> <C6B0> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ˤ<EFBFBD> <CBA4> <EFBFBD>
proc<EFBFBD> <EFBFBD> irb<EFBFBD> Υ <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ƥ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ȥ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ȥ<EFBFBD> <EFBFBD> ƸƤӽФ<EFBFBD> <EFBFBD> ޤ<EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ˤ<EFBFBD> <CBA4> äƸ<C3A4> <C6B8> ̤Υ <CCA4>
<EFBFBD> <EFBFBD> irb<EFBFBD> <EFBFBD> <EFBFBD> Ȥ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ѥ<EFBFBD> <EFBFBD> 뤳<EFBFBD> Ȥ<EFBFBD> <EFBFBD> Ǥ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 褦<EFBFBD> ˤʤ<EFBFBD> <EFBFBD> ޤ<EFBFBD> .
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
= <20> <> <EFBFBD> ޥ<EFBFBD> <DEA5> <EFBFBD>
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
irb<EFBFBD> <EFBFBD> ĥ<EFBFBD> <EFBFBD> <EFBFBD> ޥ<EFBFBD> <EFBFBD> ɤ<EFBFBD> , <20> <> ñ<EFBFBD> <C3B1> ̾<EFBFBD> <CCBE> <EFBFBD> <EFBFBD> Ƭ<EFBFBD> <C6AC> `irb_'<27> <> <EFBFBD> Ĥ<EFBFBD> <C4A4> <EFBFBD> ̾<EFBFBD> <CCBE> <EFBFBD> <EFBFBD> ξ<EFBFBD> <CEBE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
<EFBFBD> <EFBFBD> <EFBFBD> ޤ<EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , <20> <> ñ<EFBFBD> <C3B1> ̾<EFBFBD> <CCBE> <EFBFBD> <EFBFBD> override<64> <65> <EFBFBD> 줿<EFBFBD> <ECA4BF> <EFBFBD> Τ <EFBFBD> <CEA4> <EFBFBD> <EFBFBD> Ǥ<EFBFBD> .
2001-04-30 13:38:21 -04:00
--- exit, quit, irb_exit
2001-05-07 19:35:09 -04:00
<20> <> λ<EFBFBD> <CEBB> <EFBFBD> <EFBFBD> .
<20> <> <EFBFBD> <EFBFBD> irb<72> ξ<EFBFBD> <CEBE> <EFBFBD> , <20> <> <EFBFBD> Υ <EFBFBD> <CEA5> <EFBFBD> irb<72> <62> <EFBFBD> <EFBFBD> λ<EFBFBD> <CEBB> <EFBFBD> <EFBFBD> .
cb<63> <62> <EFBFBD> Ƥ<EFBFBD> <C6A4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD> Υ Х <CEA5> <D0A5> <EFBFBD> <EFBFBD> ǥ<EFBFBD> <C7A5> Υ ⡼<CEA5> ɤ<EFBFBD> <C9A4> <EFBFBD> λ<EFBFBD> <CEBB> <EFBFBD> <EFBFBD> .
2001-04-30 13:38:21 -04:00
--- conf, irb_context
2001-05-07 19:35:09 -04:00
irb<72> θ<EFBFBD> <CEB8> ߤ<EFBFBD> <DFA4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ɽ<EFBFBD> <C9BD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ѹ<EFBFBD> <D1B9> <EFBFBD> , conf<6E> ˥<EFBFBD> <CBA5> å<EFBFBD> <C3A5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 뤳
<20> Ȥˤ<C8A4> <CBA4> äƹԤʤ<D4A4> <CAA4> <EFBFBD> .
2001-04-30 13:38:21 -04:00
--- conf.back_trace_limit
2001-05-07 19:35:09 -04:00
<20> Х å<D0A5> <C3A5> ȥ졼<C8A5> <ECA1BC> ɽ<EFBFBD> <C9BD> <EFBFBD> <EFBFBD> <EFBFBD> Х å<D0A5> <C3A5> ȥ졼<C8A5> <ECA1BC> <EFBFBD> <EFBFBD> Ƭ<EFBFBD> <C6AC> <EFBFBD> <EFBFBD> n, <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> n<EFBFBD> <6E> <EFBFBD> <EFBFBD> <EFBFBD> Ԥʤ<D4A4> .
<20> ǥե<C7A5> <D5A5> <EFBFBD> <EFBFBD> Ȥ<EFBFBD> 16
2001-04-30 13:38:21 -04:00
--- conf.debug_level = N
2001-05-07 19:35:09 -04:00
irb<72> ѤΥ ǥХ å<D0A5> <C3A5> <EFBFBD> <EFBFBD> ٥ <EFBFBD> <D9A5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2001-04-30 13:38:21 -04:00
--- conf.ignore_eof = true/false
2001-05-07 19:35:09 -04:00
^D<> <44> <EFBFBD> <EFBFBD> <EFBFBD> Ϥ<EFBFBD> <CFA4> 줿<EFBFBD> <ECA4BF> <EFBFBD> <EFBFBD> ư<EFBFBD> <C6B0> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ꤹ<EFBFBD> <EAA4B9> . true<75> λ<EFBFBD> <CEBB> <EFBFBD> ^D<> <44> ̵<EFBFBD> 뤹<EFBFBD> <EBA4B9> , false<73> <65>
<20> <> <EFBFBD> <EFBFBD> irb<72> <62> <EFBFBD> <EFBFBD> λ<EFBFBD> <CEBB> <EFBFBD> <EFBFBD> .
2001-04-30 13:38:21 -04:00
--- conf.ignore_sigint= true/false
2001-05-07 19:35:09 -04:00
^C<> <43> <EFBFBD> <EFBFBD> <EFBFBD> Ϥ<EFBFBD> <CFA4> 줿<EFBFBD> <ECA4BF> <EFBFBD> <EFBFBD> ư<EFBFBD> <C6B0> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ꤹ<EFBFBD> <EAA4B9> . false<73> <65> <EFBFBD> <EFBFBD> , irb<72> <62> <EFBFBD> <EFBFBD> λ<EFBFBD> <CEBB> <EFBFBD> <EFBFBD> . true<75> <65>
<20> <> <EFBFBD> <EFBFBD> ư<EFBFBD> <C6B0> <EFBFBD> ϰʲ<CFB0> <CAB2> Τ 褦<CEA4> ˤʤ<CBA4> :
<20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> : <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ޤ<EFBFBD> <DEA4> <EFBFBD> <EFBFBD> Ϥ<EFBFBD> <CFA4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Τ <CEA4> <F2A5ADA5> 뤷<F3A5BBA5> ȥåץ<C3A5> <D7A5> ٥ <EFBFBD> <D9A5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .
<20> ¹<EFBFBD> <C2B9> <EFBFBD> : <20> ¹Ԥ<C2B9> <D4A4> <EFBFBD> <EFBFBD> ߤ<EFBFBD> <DFA4> <EFBFBD> .
2001-04-30 13:38:21 -04:00
--- conf.inf_ruby_mode = true/false
2001-05-07 19:35:09 -04:00
inf-ruby-mode<64> ѤΥ ץ<CEA5> <D7A5> <EFBFBD> <EFBFBD> ץ<EFBFBD> ɽ<EFBFBD> <C9BD> <EFBFBD> <EFBFBD> <EFBFBD> Ԥʤ<D4A4> . <20> ǥե<C7A5> <D5A5> <EFBFBD> <EFBFBD> Ȥ<EFBFBD> false.
2001-04-30 13:38:21 -04:00
--- conf.inspect_mode = true/false/nil
2001-05-07 19:35:09 -04:00
<20> <> <EFBFBD> ڥ<F3A5B9A5> <DAA5> ȥ⡼<C8A5> ɤ<EFBFBD> <C9A4> <EFBFBD> <EFBFBD> ꤹ<EFBFBD> <EAA4B9> .
true: <20> <> <EFBFBD> ڥ<F3A5B9A5> <DAA5> Ȥ<EFBFBD> <C8A4> <EFBFBD> ɽ<EFBFBD> <C9BD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .
false: <20> ̾<EFBFBD> <CCBE> <EFBFBD> print<6E> <74> ɽ<EFBFBD> <C9BD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .
nil: <20> ̾<EFBFBD> <CCBE> ⡼<EFBFBD> ɤǤ<C9A4> <C7A4> <EFBFBD> <EFBFBD> <EFBFBD> , inspect mode<64> Ȥʤ<C8A4> , math<74> ⡼<EFBFBD> ɤλ<C9A4> <CEBB> <EFBFBD> , non
inspect mode<64> Ȥʤ<C8A4> .
2001-04-30 13:38:21 -04:00
--- conf.irb_level
2001-05-07 19:35:09 -04:00
<20> <> <EFBFBD> ȤΤ <C8A4> . irb<72> <62> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> cb<63> <62> <EFBFBD> Ƥ<EFBFBD> <C6A4> 뤫?
2001-04-30 13:38:21 -04:00
--- conf.math_mode
2001-05-07 19:35:09 -04:00
<20> <> <EFBFBD> ȤΤ <C8A4> . bc<62> ⡼<EFBFBD> <E2A1BC> (ʬ<> <CAAC> , <20> <> <EFBFBD> <EFBFBD> <EFBFBD> η<CEB7> <D7BB> <EFBFBD> <EFBFBD> Ǥ<EFBFBD> <C7A4> ޤ<EFBFBD> )<29> <> <EFBFBD> ɤ<EFBFBD> <C9A4> <EFBFBD> ?
2001-04-30 13:38:21 -04:00
--- conf.use_loader = true/false
2001-05-07 19:35:09 -04:00
load/require<72> <65> <EFBFBD> <EFBFBD> irb<72> <62> file<6C> ɤ߹<C9A4> <DFB9> ߵ <EFBFBD> ǽ<EFBFBD> <C7BD> <EFBFBD> Ѥ<EFBFBD> <D1A4> <EFBFBD> <EFBFBD> ⡼<EFBFBD> ɤΥ <C9A4> <CEA5> <EFBFBD> <EFBFBD> å<EFBFBD> (<28> ǥե<C7A5>
<20> <> <EFBFBD> Ȥ<EFBFBD> <C8A4> Ѥ<EFBFBD> <D1A4> ʤ<EFBFBD> ). <20> <> <EFBFBD> Υ ⡼<CEA5> ɤ<EFBFBD> IRB<52> <42> <EFBFBD> Τ <EFBFBD> ȿ<EFBFBD> Ǥ<EFBFBD> <C7A4> <EFBFBD> <EFBFBD> <EFBFBD> .
2001-04-30 13:38:21 -04:00
--- conf.prompt_c
2001-05-07 19:35:09 -04:00
if<69> <66> ľ<EFBFBD> <C4BE> <EFBFBD> ʤ<EFBFBD> , <20> Ԥ<EFBFBD> <D4A4> <EFBFBD> ³<EFBFBD> <C2B3> <EFBFBD> Ƥ<EFBFBD> <C6A4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Υ ץ<CEA5> <D7A5> <EFBFBD> <EFBFBD> ץ<EFBFBD> .
2001-04-30 13:38:21 -04:00
--- conf.prompt_i
2001-05-07 19:35:09 -04:00
<20> ̾<EFBFBD> <CCBE> Υ ץ<CEA5> <D7A5> <EFBFBD> <EFBFBD> ץ<EFBFBD> .
2001-04-30 13:38:21 -04:00
--- conf.prompt_s
2001-05-07 19:35:09 -04:00
ʸ<> <CAB8> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ʤɤ<CAA4> ɽ<EFBFBD> <C9BD> <EFBFBD> ץ<EFBFBD> <D7A5> <EFBFBD> <EFBFBD> ץ<EFBFBD> .
2001-04-30 13:38:21 -04:00
--- conf.rc
2001-05-07 19:35:09 -04:00
~/.irbrc<72> <63> <EFBFBD> ɤ߹<C9A4> <DFB9> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ɤ<EFBFBD> <C9A4> <EFBFBD> ?
2001-04-30 13:38:21 -04:00
--- conf.use_prompt = true/false
2001-05-07 19:35:09 -04:00
<20> ץ<EFBFBD> <D7A5> <EFBFBD> <EFBFBD> ץ<EFBFBD> ɽ<EFBFBD> <C9BD> <EFBFBD> <EFBFBD> <EFBFBD> 뤫<EFBFBD> ɤ<EFBFBD> <C9A4> <EFBFBD> ? <20> ǥե<C7A5> <D5A5> <EFBFBD> <EFBFBD> ȤǤϥץ<CFA5> <D7A5> <EFBFBD> <EFBFBD> ץȤ<D7A5> ɽ<EFBFBD> <C9BD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .
2001-04-30 13:38:21 -04:00
--- conf.use_readline = true/false/nil
2001-05-07 19:35:09 -04:00
readline<6E> <65> <EFBFBD> Ȥ<EFBFBD> <C8A4> <EFBFBD> <EFBFBD> ɤ<EFBFBD> <C9A4> <EFBFBD> ?
true: readline<6E> <65> <EFBFBD> Ȥ<EFBFBD> .
false: readline<6E> <65> <EFBFBD> Ȥ<EFBFBD> <C8A4> ʤ<EFBFBD> .
nil: (<28> ǥե<C7A5> <D5A5> <EFBFBD> <EFBFBD> <EFBFBD> )inf-reuby-mode<64> ʳ<EFBFBD> <CAB3> <EFBFBD> readline<6E> 饤<EFBFBD> ֥<EFBFBD> <D6A5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ѥ<EFBFBD> <D1A4> <EFBFBD>
<20> <> <EFBFBD> Ȥ<EFBFBD> <C8A4> <EFBFBD> .
2001-04-30 13:38:21 -04:00
--- conf.verbose=T/F
2001-05-07 19:35:09 -04:00
irb<72> <62> <EFBFBD> 餤<EFBFBD> <E9A4A4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ʥ<EFBFBD> <CAA5> å<EFBFBD> <C3A5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ϥ<EFBFBD> <CFA4> 뤫?
2001-04-30 13:38:21 -04:00
--- cb, irb_change_binding [obj]
2001-05-07 19:35:09 -04:00
<20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ѿ<EFBFBD> <D1BF> Υ <EFBFBD> <CEA5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> פ<EFBFBD> <D7A4> 㤦<EFBFBD> <E3A4A6> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> binding<6E> ˰ܤ<CBB0> . obj<62> <6A> <EFBFBD> <EFBFBD> <EFBFBD> ꤵ<EFBFBD> 줿
<20> <> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD> <EFBFBD> obj<62> <6A> self<6C> Ȥ<EFBFBD> <C8A4> <EFBFBD> .
2001-04-30 13:38:21 -04:00
--- irb [obj]
2001-05-07 19:35:09 -04:00
<20> <> <EFBFBD> <EFBFBD> irb<72> <62> Ω<EFBFBD> <CEA9> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> . obj<62> <6A> <EFBFBD> <EFBFBD> <EFBFBD> ꤵ<EFBFBD> 줿<EFBFBD> <ECA4BF> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD> <EFBFBD> obj<62> <6A> self<6C> Ȥ<EFBFBD> <C8A4> <EFBFBD> .
2001-04-30 13:38:21 -04:00
--- jobs, irb_jobs
2001-05-07 19:35:09 -04:00
<20> <> <EFBFBD> <EFBFBD> irb<72> Υ ꥹ<CEA5> <EAA5B9>
2001-04-30 13:38:21 -04:00
--- fg n, irb_fg n
2001-05-07 19:35:09 -04:00
<20> <> <EFBFBD> ꤷ<EFBFBD> <EAA4B7> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> irb<72> ˥<EFBFBD> <CBA5> <EFBFBD> <EFBFBD> å<EFBFBD> <C3A5> <EFBFBD> <EFBFBD> <EFBFBD> . n<> <6E> , <20> <> <EFBFBD> Τ <EFBFBD> <CEA4> Τ <EFBFBD> <CEA4> <EFBFBD> <EFBFBD> ꤹ<EFBFBD> <EAA4B9> .
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
irb<72> ֹ<EFBFBD>
<20> <> <EFBFBD> <EFBFBD> <EFBFBD> å<EFBFBD>
irb<72> <62> <EFBFBD> ֥<EFBFBD> <D6A5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
self(irb obj<62> ǵ<EFBFBD> ư<EFBFBD> <C6B0> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> obj)
2001-04-30 13:38:21 -04:00
--- kill n, irb_kill n
2001-05-07 19:35:09 -04:00
<20> <> <EFBFBD> <EFBFBD> irb<72> <62> kill<6C> <6C> <EFBFBD> <EFBFBD> . n<> <6E> fg<66> <67> Ʊ<EFBFBD> <C6B1> .
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
= <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ƥ<EFBFBD> <C6A5> ѿ<EFBFBD>
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
_ <20> <> <EFBFBD> η<CEB7> <D7BB> μ¹Է<C2B9> <D4B7> ̤<EFBFBD> <CCA4> Ф<EFBFBD> <D0A4> Ƥ<EFBFBD> <C6A4> <EFBFBD> (<28> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ѿ<EFBFBD> ).
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
= <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
<EFBFBD> ʲ<EFBFBD> <EFBFBD> Τ 褦<EFBFBD> ʴ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ǥ<EFBFBD> .
2001-04-30 13:38:21 -04:00
dim% ruby irb.rb
2001-05-07 19:35:09 -04:00
irb(main):001:0> irb # <20> <> <EFBFBD> <EFBFBD> irb<72> <62> Ω<EFBFBD> <CEA9> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
irb#1(main):001:0> jobs # <20> <> <EFBFBD> <EFBFBD> irb<72> Υ ꥹ<CEA5> <EAA5B9>
2001-04-30 13:38:21 -04:00
#0->irb on main (#<Thread:0x400fb7e4> : stop)
#1->irb#1 on main (#<Thread:0x40125d64> : running)
nil
2001-05-07 19:35:09 -04:00
irb#1(main):002:0> fg 0 # job<6F> Υ <EFBFBD> <CEA5> <EFBFBD> <EFBFBD> å<EFBFBD>
2001-04-30 13:38:21 -04:00
nil
irb(main):002:0> class Foo;end
nil
2001-05-07 19:35:09 -04:00
irb(main):003:0> irb Foo # Foo<6F> <EFBFBD> <F2A5B3A5> ƥ<EFBFBD> <C6A5> <EFBFBD> <EFBFBD> Ȥ<EFBFBD> <C8A4> <EFBFBD> irb
# Ω<> <CEA9> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
irb#2(Foo):001:0> def foo # Foo#foo<6F> <6F> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2001-04-30 13:38:21 -04:00
irb#2(Foo):002:1> print 1
irb#2(Foo):003:1> end
nil
2001-05-07 19:35:09 -04:00
irb#2(Foo):004:0> fg 0 # job<6F> <EFBFBD> <F2A5B9A5> å<EFBFBD>
2001-04-30 13:38:21 -04:00
nil
2001-05-07 19:35:09 -04:00
irb(main):004:0> jobs # job<6F> Υ ꥹ<CEA5> <EAA5B9>
2001-04-30 13:38:21 -04:00
#0->irb on main (#<Thread:0x400fb7e4> : running)
#1->irb#1 on main (#<Thread:0x40125d64> : stop)
#2->irb#2 on Foo (#<Thread:0x4011d54c> : stop)
nil
2001-05-07 19:35:09 -04:00
irb(main):005:0> Foo.instance_methods # Foo#foo<6F> <6F> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
# <20> <> <EFBFBD> Ƥ<EFBFBD> <C6A4> <EFBFBD>
2001-04-30 13:38:21 -04:00
["foo"]
2001-05-07 19:35:09 -04:00
irb(main):006:0> fg 2 # job<6F> <EFBFBD> <F2A5B9A5> å<EFBFBD>
2001-04-30 13:38:21 -04:00
nil
2001-05-07 19:35:09 -04:00
irb#2(Foo):005:0> def bar # Foo#bar<61> <72> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2001-04-30 13:38:21 -04:00
irb#2(Foo):006:1> print "bar"
irb#2(Foo):007:1> end
nil
irb#2(Foo):010:0> Foo.instance_methods
["bar", "foo"]
irb#2(Foo):011:0> fg 0
nil
irb(main):007:0> f = Foo.new
#<Foo:0x4010af3c>
2001-05-07 19:35:09 -04:00
irb(main):008:0> irb f # Foo<6F> Υ <EFBFBD> <CEA5> <EFBFBD> <F3A5B9A5> <EFBFBD> irb<72> <62>
# Ω<> <CEA9> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .
2001-04-30 13:38:21 -04:00
irb#3(#<Foo:0x4010af3c>):001:0> jobs
#0->irb on main (#<Thread:0x400fb7e4> : stop)
#1->irb#1 on main (#<Thread:0x40125d64> : stop)
#2->irb#2 on Foo (#<Thread:0x4011d54c> : stop)
#3->irb#3 on #<Foo:0x4010af3c> (#<Thread:0x4010a1e0> : running)
nil
2001-05-07 19:35:09 -04:00
irb#3(#<Foo:0x4010af3c>):002:0> foo # f.foo<6F> μ¹<CEBC>
2001-04-30 13:38:21 -04:00
nil
2001-05-07 19:35:09 -04:00
irb#3(#<Foo:0x4010af3c>):003:0> bar # f.bar<61> μ¹<CEBC>
2001-04-30 13:38:21 -04:00
barnil
2001-05-07 19:35:09 -04:00
irb#3(#<Foo:0x4010af3c>):004:0> kill 1, 2, 3# job<6F> <62> kill
2001-04-30 13:38:21 -04:00
nil
irb(main):009:0> jobs
#0->irb on main (#<Thread:0x400fb7e4> : running)
nil
2001-05-07 19:35:09 -04:00
irb(main):010:0> exit # <20> <> λ
2001-04-30 13:38:21 -04:00
dim%
2001-05-07 19:35:09 -04:00
= <20> <> <EFBFBD> Ѿ<EFBFBD> <D1BE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
irb<EFBFBD> <EFBFBD> , ɾ<> <C9BE> <EFBFBD> Ǥ<EFBFBD> <C7A4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> (<28> <> <EFBFBD> <EFBFBD> <EFBFBD> Ĥ<EFBFBD> <C4A4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> )<29> Ǥ<EFBFBD> <C7A4> ༡<EFBFBD> ¹Ԥ<C2B9> <D4A4> Ԥʤ<D4A4> <CAA4> ޤ<EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
<EFBFBD> <EFBFBD> , ruby<62> <79> ľ<EFBFBD> ܻȤä<C8A4> <C3A4> <EFBFBD> <EFBFBD> <EFBFBD> , <20> 㴳<EFBFBD> ۤʤ<DBA4> ư<EFBFBD> <C6B0> <EFBFBD> <EFBFBD> <EFBFBD> Ԥʤ<D4A4> <CAA4> <EFBFBD> <EFBFBD> 礬<EFBFBD> <E7A4AC> <EFBFBD> <EFBFBD> <EFBFBD> ޤ<EFBFBD> .
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 餫<EFBFBD> ˤʤäƤ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ޤ<EFBFBD> .
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
== <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ѿ<EFBFBD> <D1BF> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
ruby<EFBFBD> Ǥ<EFBFBD> , <20> ʲ<EFBFBD> <CAB2> Υ ץ<CEA5> <D7A5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ϥ<EFBFBD> <CFA5> 顼<EFBFBD> ˤʤ<CBA4> <CAA4> ޤ<EFBFBD> .
2001-04-30 13:38:21 -04:00
eval "foo = 0"
foo
--
-:2: undefined local variable or method `foo' for #<Object:0x40283118> (NameError)
---
NameError
2001-05-07 19:35:09 -04:00
<EFBFBD> Ȥ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , irb<72> <62> <EFBFBD> Ѥ<EFBFBD> <D1A4> <EFBFBD> <EFBFBD> <EFBFBD>
2001-04-30 13:38:21 -04:00
>> eval "foo = 0"
=> 0
>> foo
=> 0
2001-05-07 19:35:09 -04:00
<EFBFBD> Ȥʤ<EFBFBD> , <20> <> <EFBFBD> 顼<EFBFBD> <EFBFBD> <F2B5AFA4> <EFBFBD> <EFBFBD> ޤ<EFBFBD> <DEA4> <EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , ruby<62> <79> <EFBFBD> ǽ<EFBFBD> <C7BD> ˥<EFBFBD> <CBA5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ץ<EFBFBD> <D7A5> <EFBFBD> <EFBFBD> Τ <CEA4>
<EFBFBD> ѥ<EFBFBD> <EFBFBD> 뤷<EFBFBD> ƥ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ѿ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ꤹ<EFBFBD> 뤫<EFBFBD> <EFBFBD> <EFBFBD> Ǥ<EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ф<EFBFBD> , irb<72> ϼ¹Բ<C2B9> ǽ<EFBFBD> <C7BD>
<EFBFBD> ʤ<EFBFBD> (<28> <> <EFBFBD> <EFBFBD> <EFBFBD> Ĥ<EFBFBD> <C4A4> <EFBFBD> )<29> ȼ<EFBFBD> ưŪ<C6B0> <C5AA> ɾ<EFBFBD> <C9BE> <EFBFBD> <EFBFBD> <EFBFBD> Ƥ<EFBFBD> <C6A4> 뤫<EFBFBD> <EBA4AB> <EFBFBD> Ǥ<EFBFBD> . <20> 嵭<EFBFBD> <E5B5AD> <EFBFBD> <EFBFBD> <EFBFBD> Ǥ<EFBFBD> ,
2001-04-30 13:38:21 -04:00
evel "foo = 0"
2001-05-07 19:35:09 -04:00
<EFBFBD> <EFBFBD> <EFBFBD> Ԥʤä<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ɾ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ԥʤ<EFBFBD> , <20> <> <EFBFBD> λ<EFBFBD> <CEBB> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ѿ<EFBFBD> <D1BF> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 뤿<EFBFBD> <EBA4BF> , <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
<EFBFBD> ѿ<EFBFBD> foo<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ƥ<EFBFBD> <EFBFBD> 뤫<EFBFBD> <EFBFBD> <EFBFBD> Ǥ<EFBFBD> .
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
<EFBFBD> <EFBFBD> <EFBFBD> Τ 褦<EFBFBD> <EFBFBD> ruby<EFBFBD> <EFBFBD> irb<EFBFBD> <EFBFBD> ư<EFBFBD> <EFBFBD> <EFBFBD> ΰ㤤<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 褷<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , begin...end<6E> dz<EFBFBD> <C7B3> ä<EFBFBD>
<EFBFBD> Х å<EFBFBD> Ū<EFBFBD> ˼¹Ԥ<EFBFBD> <EFBFBD> Ʋ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> :
2001-04-30 13:38:21 -04:00
>> begin
?> eval "foo = 0"
>> foo
>> end
NameError: undefined local variable or method `foo' for #<Object:0x4013d0f0>
(irb):3
(irb_local_binding):1:in `eval'
2001-05-07 19:35:09 -04:00
== <20> ҥ<EFBFBD> <D2A5> ɥ<EFBFBD> <C9A5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
<EFBFBD> <EFBFBD> <EFBFBD> ߤΤ Ȥ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ҥ<EFBFBD> <EFBFBD> ɥ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ȥμ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Դ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ǥ<EFBFBD> .
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
== <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ܥ<EFBFBD>
2001-04-30 13:38:21 -04:00
2001-05-07 19:35:09 -04:00
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ܥ<EFBFBD> <EFBFBD> Ǥ<EFBFBD> <EFBFBD> 뤫<EFBFBD> ɤ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ƚ<EFBFBD> Ǥ<EFBFBD> <EFBFBD> ְ㤨<EFBFBD> 뤳<EFBFBD> Ȥ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ޤ<EFBFBD> . <20> <> <EFBFBD> <EFBFBD> Ū<EFBFBD> ˤϼ<CBA4> <CFBC> <EFBFBD> <EFBFBD> <EFBFBD> λ
<EFBFBD> <EFBFBD> <EFBFBD> Ƥ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Τ ˷<EFBFBD> ³<EFBFBD> Ԥȸ<EFBFBD> <EFBFBD> ʤ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ȥ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ޤ<EFBFBD> .
2001-04-30 13:38:21 -04:00
==end
% Begin Emacs Environment
% Local Variables:
% mode: text
% comment-column: 0
% comment-start: "%"
% comment-end: "\n"
% End:
%