種類
ライブラリ
- ビルトイン (90)
- irb (11)
-
irb
/ cmd / help (22) -
irb
/ cmd / load (44) -
irb
/ cmd / subirb (22) -
irb
/ completion (11) -
irb
/ context (484) -
irb
/ ext / history (22) -
irb
/ ext / loader (22) -
irb
/ ext / math-mode (8) -
irb
/ ext / save-history (88) -
irb
/ ext / tracer (33) -
irb
/ ext / use-loader (55) -
irb
/ extend-command (143) -
irb
/ frame (11) -
irb
/ input-method (198) -
irb
/ inspector (33) -
irb
/ magic-file (44) -
irb
/ output-method (22) - pathname (22)
- psych (22)
クラス
-
IRB
:: Context (624) -
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 (132) -
IRB
:: HistorySavingAbility (33) - Kernel (36)
-
RubyVM
:: AbstractSyntaxTree (2)
オブジェクト
-
IRB
:: MagicFile (33)
キーワード
-
$ -K (7) -
$ KCODE (7) - Completor (11)
-
ENCODING
_ SPEC _ RE (11) - ExtendCommandBundle (11)
- FileInputMethod (11)
- Help (11)
- HistorySavingAbility (11)
- Inspector (11)
- IrbLoader (11)
- Kill (11)
- Load (11)
- LoadAbort (11)
- MagicFile (11)
-
NO
_ OVERRIDE (11) -
OVERRIDE
_ ALL (11) -
OVERRIDE
_ PRIVATE _ ONLY (11) - ReadlineInputMethod (11)
- Ruby用語集 (11)
-
STDIN
_ FILE _ NAME (11) -
absolute
_ path (11) -
ap
_ name= (11) -
auto
_ indent _ mode (11) -
auto
_ indent _ mode= (11) -
back
_ trace _ limit (11) -
back
_ trace _ limit= (11) - backtrace (11)
-
base
_ label (11) -
compile
_ file (11) - debug? (11)
-
debug
_ level (11) -
debug
_ level= (11) -
def
_ extend _ command (22) -
def
_ inspector (11) - echo (11)
- echo= (11)
- echo? (11)
- encoding (22)
- eof? (22)
-
eval
_ history (11) -
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) -
history
_ file= (11) -
ignore
_ eof (11) -
ignore
_ eof= (11) -
ignore
_ eof? (11) -
ignore
_ sigint (11) -
ignore
_ sigint= (11) -
ignore
_ sigint? (11) - inspect? (11)
-
inspect
_ mode (11) -
inspect
_ value (11) -
install
_ alias _ method (11) -
install
_ extend _ commands (22) - io= (11)
-
irb
/ cmd / help (11) -
irb
/ cmd / load (11) -
irb
/ completion (11) -
irb
/ ext / loader (11) -
irb
/ ext / multi-irb (11) -
irb
/ ext / use-loader (11) -
irb
/ help (11) -
irb
/ locale (11) -
irb
/ magic-file (11) -
irb
/ ruby-lex (11) -
irb
/ slex (6) - irb= (11)
-
irb
_ context (11) -
irb
_ exit (11) -
irb
_ load (11) -
irb
_ name= (11) -
irb
_ original _ method _ name (11) -
irb
_ path= (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
_ c= (11) -
prompt
_ i= (11) -
prompt
_ mode (11) -
prompt
_ n= (11) -
prompt
_ s= (11) - prompting? (11)
-
psych
_ y (11) - rc (11)
- rc? (11)
-
readable
_ atfer _ eof? (33) -
report
_ on _ exception (8) -
return
_ format= (11) -
ruby 1
. 8 . 2 feature (11) -
save
_ history (22) -
save
_ history= (11) -
set
_ last _ value (11) - start (11)
-
trace
_ func (11) -
use
_ loader (11) -
use
_ loader= (11) -
use
_ loader? (11) -
use
_ readline (11) -
use
_ readline? (11) -
use
_ tracer (11) -
use
_ tracer= (11) -
use
_ tracer? (11) - verbose (11)
- verbose= (11)
- verbose? (11)
- workspace= (11)
- y (11)
検索結果
先頭5件
-
irb (39622.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
/ ext / multi-irb (18038.0) -
irb 中で複数の独立した irb を扱えるようにするためのサブライブラリです。
...irb 中で複数の独立した irb を扱えるようにするためのサブライブラリです。
このライブラリで定義されているメソッドはユーザが直接使用するものではあ
りません。irb/cmd/subirb から呼び出されます。... -
IRB
. start(ap _ path = nil) -> () (17138.0) -
IRB を初期化して、トップレベルの irb を開始します。
...
IRB を初期化して、トップレベルの irb を開始します。
@param ap_path irb コマンドのパスを指定します。... -
IRB
:: ExtendCommandBundle # irb _ load(*opts , &b) -> nil (15255.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 (15223.0) -
method_name で指定したメソッドの irb 中でのエイリアスを返します。ライブ ラリ内部で使用します。
...method_name で指定したメソッドの irb 中でのエイリアスを返します。ライブ
ラリ内部で使用します。
@param method_name メソッド名を Symbol か文字列で指定します。
@see IRB::ExtendCommandBundle#install_alias_method... -
IRB
:: STDIN _ FILE _ NAME -> "(line)" (15100.0) -
標準入力を使用する際のファイル名を文字列で返します。
標準入力を使用する際のファイル名を文字列で返します。 -
IRB
:: IrbLoader (15048.0) -
load または require 時の irb のファイル読み込み機能(irb_load、 irb_require)を定義するモジュールです。
...load または require 時の irb のファイル読み込み機能(irb_load、
irb_require)を定義するモジュールです。
ユーザが直接使用するものではありません。... -
RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence (12306.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 (12255.0) -
現在の irb に関する IRB::Context に対して irb_require コマンドを 実行します。
...現在の irb に関する IRB::Context に対して irb_require コマンドを
実行します。
@see IRB::ExtendCommand::Require#execute... -
IRB
:: ExtendCommandBundle # irb _ context -> IRB :: Context (12234.0) -
現在の irb に関する IRB::Context を返します。
...現在の irb に関する IRB::Context を返します。...