440件ヒット
[1-100件を表示]
(0.027秒)
ライブラリ
- ビルトイン (66)
-
irb
/ cmd / load (33) -
irb
/ context (11) -
irb
/ ext / save-history (22) -
irb
/ extend-command (22) -
irb
/ frame (11) -
irb
/ input-method (132) -
irb
/ magic-file (44)
クラス
-
IRB
:: Context (33) -
IRB
:: ExtendCommand :: Load (11) -
IRB
:: ExtendCommand :: Require (11) -
IRB
:: ExtendCommand :: Source (11) -
IRB
:: FileInputMethod (33) -
IRB
:: Frame (11) -
IRB
:: InputMethod (33) -
IRB
:: ReadlineInputMethod (22) -
IRB
:: StdioInputMethod (22) -
RubyVM
:: InstructionSequence (66)
モジュール
- IRB (11)
-
IRB
:: ContextExtender (11) -
IRB
:: ExtendCommandBundle (11)
オブジェクト
-
IRB
:: MagicFile (33)
キーワード
-
ENCODING
_ SPEC _ RE (11) - FileInputMethod (11)
- MagicFile (11)
-
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - Ruby用語集 (11)
-
STDIN
_ FILE _ NAME (11) -
absolute
_ path (11) -
base
_ label (11) -
compile
_ file (11) -
def
_ extend _ command (22) - encoding (11)
- eof? (22)
- execute (33)
-
file
_ input? (11) -
file
_ name (11) - gets (11)
-
history
_ file (11) -
history
_ file= (11) -
irb
/ magic-file (11) - label (11)
- new (22)
- of (11)
- open (22)
- path (11)
-
readable
_ atfer _ eof? (33) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
trace
_ func (11)
検索結果
先頭5件
-
irb (39628.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:......的にコマンドライン編集や履歴の機能が使えるようになります。
=== irb のコマンドラインオプション
irb [options] file_name opts
options:
-f ~/.irbrc を読み込まない
-m bc モード (分数と行列の計算ができ......的にコマンドライン編集や履歴の機能が使えるようになります。
=== irb のコマンドラインオプション
irb [options] file_name opts
options:
-f ~/.irbrc を読み込まない
-d $DEBUG を true にする (ruby -d と同じ)
-... -
IRB
:: STDIN _ FILE _ NAME -> "(line)" (15101.0) -
標準入力を使用する際のファイル名を文字列で返します。
標準入力を使用する際のファイル名を文字列で返します。 -
irb
/ magic-file (12016.0) -
irb が扱う入力やファイル中のマジックコメントを正しく扱うためのサブライ ブラリです。
...irb が扱う入力やファイル中のマジックコメントを正しく扱うためのサブライ
ブラリです。
ユーザが直接使用するものではありません。... -
IRB
:: Context # history _ file=(hist) (9119.0) -
履歴ファイルのパスを val に設定します。
...履歴ファイルのパスを val に設定します。
.irbrc ファイル中で IRB.conf[:HISTORY_FILE] を設定する事でも同様の事が
行えます。
@param hist 履歴ファイルのパスを文字列で指定します。
@see lib:irb#history... -
IRB
:: Context # history _ file -> String | nil (9113.0) -
履歴ファイルのパスを返します。
...履歴ファイルのパスを返します。
@return 履歴ファイルのパスを String か nil で返します。nil を返し
た場合は、~/.irb_history に履歴が保存されます。
@see lib:irb#history... -
IRB
:: Context # file _ input? -> bool (9101.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
IRB
:: InputMethod # file _ name -> String (9101.0) -
ファイル名を文字列で返します。
ファイル名を文字列で返します。 -
IRB
:: MagicFile (9016.0) -
irb が扱う入力やファイル中のマジックコメントを正しく扱うためのクラスです。
...irb が扱う入力やファイル中のマジックコメントを正しく扱うためのクラスです。... -
IRB
:: FileInputMethod (9000.0) -
ファイルからの入力を表すクラスです。ライブラリ内部で使用します。
ファイルからの入力を表すクラスです。ライブラリ内部で使用します。 -
RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence (6242.0) -
引数 file で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
... file で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
RubyVM::InstructionSequence.compile とは異なり、file、path などの
メタデータは自動的に取得します。
@param file......yVM::InstructionSequence.compile_option= を参照
してください。
# /tmp/hello.rb
puts "Hello, world!"
# irb
RubyVM::InstructionSequence.compile_file("/tmp/hello.rb")
# => <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>
@see RubyVM::InstructionSequence.compile...