861件ヒット
[1-100件を表示]
(0.035秒)
ライブラリ
- ビルトイン (106)
-
irb
/ cmd / chws (48) -
irb
/ cmd / help (24) -
irb
/ cmd / load (72) -
irb
/ cmd / nop (60) -
irb
/ cmd / pushws (72) -
irb
/ cmd / subirb (96) -
irb
/ ext / save-history (12) -
irb
/ ext / use-loader (24) -
irb
/ extend-command (168) -
irb
/ frame (12) -
irb
/ input-method (60)
クラス
-
IRB
:: ExtendCommand :: ChangeWorkspace (12) -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (12) -
IRB
:: ExtendCommand :: Foreground (12) -
IRB
:: ExtendCommand :: Help (12) -
IRB
:: ExtendCommand :: IrbCommand (12) -
IRB
:: ExtendCommand :: Jobs (12) -
IRB
:: ExtendCommand :: Kill (12) -
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Nop (48) -
IRB
:: ExtendCommand :: PopWorkspace (12) -
IRB
:: ExtendCommand :: PushWorkspace (12) -
IRB
:: ExtendCommand :: Require (12) -
IRB
:: ExtendCommand :: Source (12) -
IRB
:: ExtendCommand :: Workspaces (12) -
IRB
:: Frame (12) -
IRB
:: InputMethod (12) -
IRB
:: ReadlineInputMethod (24) -
IRB
:: StdioInputMethod (24) -
RubyVM
:: InstructionSequence (72) - Thread (12)
- TracePoint (12)
モジュール
-
IRB
:: ContextExtender (24) -
IRB
:: ExtendCommandBundle (144) -
IRB
:: HistorySavingAbility (12) -
RubyVM
:: AbstractSyntaxTree (10)
キーワード
- ChangeWorkspace (12)
- ContextExtender (12)
- CurrentWorkingWorkspace (12)
- ExtendCommandBundle (12)
- Foreground (12)
- Help (12)
- IrbCommand (12)
- Jobs (12)
- Kill (12)
- Load (12)
-
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) -
NO
_ OVERRIDE (12) - Nop (12)
-
OVERRIDE
_ ALL (12) -
OVERRIDE
_ PRIVATE _ ONLY (12) - PopWorkspace (12)
- PushWorkspace (12)
- Require (12)
- Ruby用語集 (12)
- Source (12)
- Workspaces (12)
-
absolute
_ path (12) - backtrace (12)
-
base
_ label (12) -
def
_ extend _ command (24) - eof? (24)
- execute (180)
-
extend
_ object (12) - extended (12)
-
first
_ lineno (12) -
install
_ alias _ method (12) -
install
_ extend _ commands (24) -
irb
/ extend-command (12) -
irb
/ xmp (12) -
irb
_ context (24) -
irb
_ exit (12) -
irb
_ load (12) -
irb
_ original _ method _ name (12) -
irb
_ require (12) - label (12)
- new (24)
- of (22)
- path (12)
-
readable
_ atfer _ eof? (36) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 4 feature (12) - sender (12)
検索結果
先頭5件
-
irb (39652.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
:: ExtendCommandBundle . extend _ object(obj) -> IRB :: ExtendCommandBundle (12323.0) -
IRB::ExtendCommandBundle で定義済みの拡張に指定されたエイリアスを obj に定義します。
...
IRB::ExtendCommandBundle で定義済みの拡張に指定されたエイリアスを
obj に定義します。
@param obj IRB::ExtendCommandBundle を extend したオブジェクト... -
IRB
:: ExtendCommand :: Nop # irb _ context -> IRB :: Context (12234.0) -
irb の現在の設定(IRB::Context)を返します。
...
irb の現在の設定(IRB::Context)を返します。... -
IRB
:: ExtendCommandBundle # irb _ context -> IRB :: Context (12234.0) -
現在の irb に関する IRB::Context を返します。
...現在の irb に関する IRB::Context を返します。... -
IRB
:: ExtendCommandBundle . install _ extend _ commands -> object (12196.0) -
定義済みの拡張を読み込みます。
...
irb で以下のメソッドが利用できるようになります。(それぞれ 1 つだけ抜粋)
* irb_current_working_workspace
* irb_change_workspace
* irb_workspaces
* irb_push_workspace
* irb_pop_workspace
* irb_load
* irb_require
* irb_source
* irb
* irb_jobs
* irb_fg
* irb......_kill
* irb_help
irb/extend-command が require された時にライブラリ内部で自動的
に実行されます。
@see IRB::ExtendCommandBundle.install_extend_commands... -
IRB
:: ExtendCommandBundle # irb _ load(*opts , &b) -> nil (12155.0) -
現在の irb に関する IRB::Context に対して irb_load コマンドを実行 します。
...現在の irb に関する IRB::Context に対して irb_load コマンドを実行
します。
@see IRB::ExtendCommand::Load#execute... -
IRB
:: ExtendCommandBundle # irb _ require(*opts , &b) -> bool (12155.0) -
現在の irb に関する IRB::Context に対して irb_require コマンドを 実行します。
...現在の irb に関する IRB::Context に対して irb_require コマンドを
実行します。
@see IRB::ExtendCommand::Require#execute... -
IRB
:: ExtendCommandBundle . def _ extend _ command(cmd _ name , cmd _ class , load _ file = nil , *aliases) -> object (12140.0) -
irb に cmd_name で指定したメソッドが実行できるように拡張します。
...
irb に cmd_name で指定したメソッドが実行できるように拡張します。
@param cmd_name メソッド名を Symbol か文字列で指定します。
cmd_class で指定するクラスの execute メソッドとして定
義してある必要があ......たクラス名を Symbol、
String、Class のいずれかで指定します。
なお、このクラスは IRB::ExtendCommand 以下で定義
する必要があります。
@param load_file 指定したメソッドが定義されたファイル......ま
す。複数指定する事ができます。フラグは
IRB::ExtendCommandBundle::NO_OVERRIDE、
IRB::ExtendCommandBundle::OVERRIDE_PRIVATE_ONLY、
IRB::ExtendCommandBundle::OVERRIDE_ALL のいずれか
を指定しま... -
IRB
:: ExtendCommandBundle . irb _ original _ method _ name(method _ name) -> String (12123.0) -
method_name で指定したメソッドの irb 中でのエイリアスを返します。ライブ ラリ内部で使用します。
...method_name で指定したメソッドの irb 中でのエイリアスを返します。ライブ
ラリ内部で使用します。
@param method_name メソッド名を Symbol か文字列で指定します。
@see IRB::ExtendCommandBundle#install_alias_method...