るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.044秒)
トップページ > クエリ:Method[x] > クエリ:file_name[x]

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. cgi file_field
  4. pathname file?
  5. file ctime

ライブラリ

クラス

キーワード

検索結果

IRB::InputMethod#file_name -> String (21101.0)

ファイル名を文字列で返します。

ファイル名を文字列で返します。

IRB::InputMethod.new(file = STDIN_FILE_NAME) -> IRB::InputMethod (3201.0)

自身を初期化します。

自身を初期化します。

irb (24.0)

irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

...マンドライン編集や履歴の機能が使えるようになります。

=== irb のコマンドラインオプション

irb [options] file_name opts
options:
-f ~/.irbrc を読み込まない
-m bc モード (分数と行列の計算ができる)
-d...
...b(main):006:0> irb # サブ irb を起動
irb#1(main):001:0> x # x を表示
NameError: undefined local variable or method `x' for main:Object
from (irb#1):1:in `Kernel#binding'

起動時のインタプリタでローカル変数 x を定義しましたが、
「i...
...running)
#1->irb#1 on main (#<Thread:0x40125d64> : stop)
#2->irb#2 on Foo (#<Thread:0x4011d54c> : stop)
nil
irb(main):005:0> Foo.instance_methods # Foo#fooがちゃんと定義さ
# れている
["foo"]
irb(main):006:0> fg 2...
...マンドライン編集や履歴の機能が使えるようになります。

=== irb のコマンドラインオプション

irb [options] file_name opts
options:
-f ~/.irbrc を読み込まない
-d $DEBUG を true にする (ruby -d と同じ)
-w...