770件ヒット
[1-100件を表示]
(0.130秒)
ライブラリ
- ビルトイン (90)
-
irb
/ cmd / chws (44) -
irb
/ cmd / help (22) -
irb
/ cmd / load (66) -
irb
/ cmd / nop (55) -
irb
/ cmd / pushws (66) -
irb
/ cmd / subirb (88) -
irb
/ ext / save-history (11) -
irb
/ ext / use-loader (22) -
irb
/ extend-command (154) -
irb
/ frame (11) -
irb
/ input-method (55)
クラス
-
IRB
:: ExtendCommand :: ChangeWorkspace (11) -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (11) -
IRB
:: ExtendCommand :: Foreground (11) -
IRB
:: ExtendCommand :: Help (11) -
IRB
:: ExtendCommand :: IrbCommand (11) -
IRB
:: ExtendCommand :: Jobs (11) -
IRB
:: ExtendCommand :: Kill (11) -
IRB
:: ExtendCommand :: Load (11) -
IRB
:: ExtendCommand :: Nop (44) -
IRB
:: ExtendCommand :: PopWorkspace (11) -
IRB
:: ExtendCommand :: PushWorkspace (11) -
IRB
:: ExtendCommand :: Require (11) -
IRB
:: ExtendCommand :: Source (11) -
IRB
:: ExtendCommand :: Workspaces (11) -
IRB
:: Frame (11) -
IRB
:: InputMethod (11) -
IRB
:: ReadlineInputMethod (22) -
IRB
:: StdioInputMethod (22) -
RubyVM
:: InstructionSequence (66) - Thread (11)
- TracePoint (11)
モジュール
キーワード
- ChangeWorkspace (11)
- ContextExtender (11)
- CurrentWorkingWorkspace (11)
- ExtendCommandBundle (11)
- Foreground (11)
- Help (11)
- IrbCommand (11)
- Jobs (11)
- Kill (11)
- Load (11)
-
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NO
_ OVERRIDE (11) - Nop (11)
-
OVERRIDE
_ ALL (11) -
OVERRIDE
_ PRIVATE _ ONLY (11) - PopWorkspace (11)
- PushWorkspace (11)
- Require (11)
- Ruby用語集 (11)
- Source (11)
- Workspaces (11)
-
absolute
_ path (11) - backtrace (11)
-
base
_ label (11) -
def
_ extend _ command (22) - eof? (22)
- execute (165)
-
extend
_ object (11) - extended (11)
-
first
_ lineno (11) -
install
_ alias _ method (11) -
install
_ extend _ commands (22) -
irb
/ extend-command (11) -
irb
/ xmp (11) -
irb
_ context (22) -
irb
_ exit (11) -
irb
_ load (11) -
irb
_ original _ method _ name (11) -
irb
_ require (11) - label (11)
- new (22)
- of (13)
- path (11)
-
readable
_ atfer _ eof? (33) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) - sender (11)
検索結果
先頭5件
-
irb (65736.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
=== irb の使い方
Ruby さえ知っていれば irb を使うのは簡単です。
irb コマンドを実行すると、以下のようなプロン......$ irb
irb(main):001:0>
あとは Ruby の式を入力するだけで、その式が実行され、結果が表示されます。
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......:foo
irb(main):007:0>
また irb コマンドは readline ライブラリにも対応しています。
readline ライブラリがインストールされている時には
自動的にコマンドライン編集や履歴の機能が使えるようになります。
=== irb のコマンドラ... -
irb
/ extend-command (38016.0) -
irb を拡張するためのサブライブラリです。
...irb を拡張するためのサブライブラリです。... -
irb
/ xmp (32088.0) -
Ruby のソースコードとその実行結果を、行ごとに交互に表示するためのライブ ラリです。irb を実行しなくても、使用することが出来ます。
...。irb を実行しなくても、使用することが出来ます。
実行結果を得るためには、Kernel#xmp と、XMP#puts を使った方
法があります。どちらの場合も XMP がコンテキスト情報を保持するため、
実行結果に差分はありません。(Binding......by のソースコードを文字列として渡
す事で実行結果を標準出力に表示します。
$ cat t.rb
require "irb/xmp"
xmp <<END
foo = 1
foo
END
$ ruby t.rb
foo = 1
==>1
foo
==>1
=== XMP インスタンス(XMP#puts)を使って実行結果を得る
X......文字列として渡す
事で実行結果を標準出力に表示します。
$ cat t.rb
require "irb/xmp"
xmp = XMP.new
xmp.puts <<END
foo = 1
foo
END
xmp.puts <<END
foo
END
$ ruby t.rb
foo = 1
==>1
foo
==>1
foo
==>1
XMP がコンテキスト情報... -
IRB
:: ExtendCommandBundle # irb _ require(*opts , &b) -> bool (27355.0) -
現在の irb に関する IRB::Context に対して irb_require コマンドを 実行します。
...現在の irb に関する IRB::Context に対して irb_require コマンドを
実行します。
@see IRB::ExtendCommand::Require#execute... -
IRB
:: ExtendCommand :: Nop # irb _ context -> IRB :: Context (21434.0) -
irb の現在の設定(IRB::Context)を返します。
...
irb の現在の設定(IRB::Context)を返します。... -
IRB
:: ExtendCommandBundle # irb _ context -> IRB :: Context (21434.0) -
現在の irb に関する IRB::Context を返します。
...現在の irb に関する IRB::Context を返します。... -
IRB
:: ExtendCommandBundle # irb _ load(*opts , &b) -> nil (21255.0) -
現在の irb に関する IRB::Context に対して irb_load コマンドを実行 します。
...現在の irb に関する IRB::Context に対して irb_load コマンドを実行
します。
@see IRB::ExtendCommand::Load#execute... -
IRB
:: ExtendCommandBundle . irb _ original _ method _ name(method _ name) -> String (21223.0) -
method_name で指定したメソッドの irb 中でのエイリアスを返します。ライブ ラリ内部で使用します。
...method_name で指定したメソッドの irb 中でのエイリアスを返します。ライブ
ラリ内部で使用します。
@param method_name メソッド名を Symbol か文字列で指定します。
@see IRB::ExtendCommandBundle#install_alias_method... -
IRB
:: ExtendCommandBundle # irb _ exit(ret = 0) -> object (21217.0) -
irb を終了します。ret で指定したオブジェクトを返します。
...
irb を終了します。ret で指定したオブジェクトを返します。
@param ret 戻り値を指定します。
ユーザが直接使用するものではありません。... -
IRB
:: ExtendCommand :: IrbCommand (21032.0) -
irb 中の irb コマンドのための拡張を定義したクラスです。
...irb 中の irb コマンドのための拡張を定義したクラスです。...