種類
- インスタンスメソッド (742)
- 特異メソッド (222)
- 定数 (44)
- ライブラリ (22)
- 変数 (14)
ライブラリ
- ビルトイン (90)
- irb (11)
-
irb
/ cmd / help (11) -
irb
/ cmd / load (33) -
irb
/ cmd / subirb (11) -
irb
/ context (286) -
irb
/ ext / history (11) -
irb
/ ext / math-mode (8) -
irb
/ ext / save-history (55) -
irb
/ ext / tracer (22) -
irb
/ ext / use-loader (44) -
irb
/ extend-command (121) -
irb
/ frame (11) -
irb
/ input-method (176) -
irb
/ inspector (33) -
irb
/ magic-file (33) -
irb
/ output-method (22) - pathname (22)
- psych (22)
クラス
-
IRB
:: Context (371) -
IRB
:: ExtendCommand :: Help (11) -
IRB
:: ExtendCommand :: Kill (11) -
IRB
:: ExtendCommand :: Load (11) -
IRB
:: ExtendCommand :: Require (11) -
IRB
:: ExtendCommand :: Source (11) -
IRB
:: FileInputMethod (33) -
IRB
:: Frame (11) -
IRB
:: InputMethod (33) -
IRB
:: Inspector (22) -
IRB
:: OutputMethod (11) -
IRB
:: ReadlineInputMethod (66) -
IRB
:: StdioInputMethod (33) -
IRB
:: StdioOutputMethod (11) - Pathname (22)
-
RubyVM
:: InstructionSequence (55) - Thread (19)
モジュール
- IRB (33)
-
IRB
:: ContextExtender (22) -
IRB
:: ExtendCommandBundle (121) -
IRB
:: HistorySavingAbility (33) - Kernel (36)
-
RubyVM
:: AbstractSyntaxTree (2)
オブジェクト
-
IRB
:: MagicFile (33)
キーワード
-
$ -K (7) -
$ KCODE (7) -
ENCODING
_ SPEC _ RE (11) - Inspector (11)
-
NO
_ OVERRIDE (11) -
OVERRIDE
_ ALL (11) -
OVERRIDE
_ PRIVATE _ ONLY (11) -
STDIN
_ FILE _ NAME (11) -
absolute
_ path (11) -
auto
_ indent _ mode (11) -
back
_ trace _ limit (11) - backtrace (11)
-
base
_ label (11) -
compile
_ file (11) - debug? (11)
-
debug
_ level (11) -
def
_ extend _ command (22) -
def
_ inspector (11) - echo (11)
- echo? (11)
- encoding (22)
- eof? (22)
-
eval
_ history (11) - evaluate (11)
- execute (55)
-
extend
_ object (11) - extended (11)
-
file
_ input? (11) -
file
_ name (11) -
first
_ lineno (11) - gets (22)
- glob (22)
-
history
_ file (11) -
ignore
_ eof (11) -
ignore
_ eof? (11) -
ignore
_ sigint (11) -
ignore
_ sigint? (11) - inspect? (11)
-
inspect
_ mode (11) -
inspect
_ value (11) -
install
_ extend _ commands (22) -
irb
/ completion (11) -
irb
_ context (11) -
irb
_ exit (11) -
irb
_ load (11) -
irb
_ original _ method _ name (11) -
irb
_ require (11) - label (11)
-
last
_ value (11) - line (22)
-
load
_ history (11) -
load
_ modules (11) - math? (4)
-
math
_ mode (4) - new (44)
- of (2)
- open (22)
- print (11)
- printn (11)
-
prompt
_ mode (11) - prompting? (11)
-
psych
_ y (11) - rc (11)
- rc? (11)
-
readable
_ atfer _ eof? (33) -
report
_ on _ exception (8) -
save
_ history (22) -
set
_ last _ value (11) - start (11)
-
trace
_ func (11) -
use
_ loader (11) -
use
_ loader? (11) -
use
_ readline (11) -
use
_ readline? (11) -
use
_ tracer (11) -
use
_ tracer? (11) - verbose (11)
- verbose? (11)
- y (11)
検索結果
先頭5件
-
irb (40090.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
. start(ap _ path = nil) -> () (17238.0) -
IRB を初期化して、トップレベルの irb を開始します。
...
IRB を初期化して、トップレベルの irb を開始します。
@param ap_path irb コマンドのパスを指定します。... -
IRB
:: ExtendCommandBundle # irb _ load(*opts , &b) -> nil (15355.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 (15323.0) -
method_name で指定したメソッドの irb 中でのエイリアスを返します。ライブ ラリ内部で使用します。
...method_name で指定したメソッドの irb 中でのエイリアスを返します。ライブ
ラリ内部で使用します。
@param method_name メソッド名を Symbol か文字列で指定します。
@see IRB::ExtendCommandBundle#install_alias_method... -
IRB
:: STDIN _ FILE _ NAME -> "(line)" (15200.0) -
標準入力を使用する際のファイル名を文字列で返します。
標準入力を使用する際のファイル名を文字列で返します。 -
RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence (12412.0) -
引数 file で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...file で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
RubyVM::InstructionSequence.compile とは異なり、file、path などの
メタデータは自動的に取得します。
@param file......lse、Hash オブ
ジェクトのいずれかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
# /tmp/hello.rb
puts "Hello, world!"
# irb
RubyVM::InstructionSequence.compile_file("/tmp/hel......lo.rb")
# => <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>
@see RubyVM::InstructionSequence.compile... -
IRB
:: ExtendCommandBundle # irb _ require(*opts , &b) -> bool (12355.0) -
現在の irb に関する IRB::Context に対して irb_require コマンドを 実行します。
...現在の irb に関する IRB::Context に対して irb_require コマンドを
実行します。
@see IRB::ExtendCommand::Require#execute... -
IRB
:: ExtendCommandBundle # irb _ context -> IRB :: Context (12334.0) -
現在の irb に関する IRB::Context を返します。
...現在の irb に関する IRB::Context を返します。... -
IRB
:: ReadlineInputMethod # line(line _ no) -> String (12300.0) -
引数 line_no で指定した過去の入力を行単位で返します。
...引数 line_no で指定した過去の入力を行単位で返します。
@param line_no 取得する行番号を整数で指定します。... -
IRB
:: ExtendCommandBundle # irb _ exit(ret = 0) -> object (12217.0) -
irb を終了します。ret で指定したオブジェクトを返します。
...
irb を終了します。ret で指定したオブジェクトを返します。
@param ret 戻り値を指定します。
ユーザが直接使用するものではありません。...