10件ヒット
[1-10件を表示]
(0.112秒)
種類
- インスタンスメソッド (5)
- 特異メソッド (3)
- 定数 (1)
- ライブラリ (1)
ライブラリ
- ビルトイン (1)
-
irb
/ input-method (3) -
rdoc
/ code _ object (1) -
rubygems
/ config _ file (1) -
rubygems
/ installer (1) -
rubygems
/ source _ index (1) -
rubygems
/ specification (1)
クラス
- File (1)
-
Gem
:: ConfigFile (1) -
Gem
:: Installer (1) -
Gem
:: SourceIndex (1) -
Gem
:: Specification (1) -
IRB
:: InputMethod (2) -
RDoc
:: CodeObject (1)
モジュール
- IRB (1)
キーワード
-
STDIN
_ FILE _ NAME (1) -
absolute
_ path (1) -
config
_ file _ name (1) - irb (1)
-
load
_ specification (1) - new (1)
-
parent
_ file _ name (1) - shebang (1)
検索結果
先頭5件
-
IRB
:: InputMethod # file _ name -> String (81904.0) -
ファイル名を文字列で返します。
ファイル名を文字列で返します。 -
Gem
:: Specification # file _ name -> String (72904.0) -
生成される Gem パッケージの名前を返します。
生成される Gem パッケージの名前を返します。 -
IRB
:: STDIN _ FILE _ NAME -> "(line)" (55204.0) -
標準入力を使用する際のファイル名を文字列で返します。
標準入力を使用する際のファイル名を文字列で返します。 -
Gem
:: ConfigFile # config _ file _ name -> String (45904.0) -
設定ファイルの名前を返します。
設定ファイルの名前を返します。 -
RDoc
:: CodeObject # parent _ file _ name -> String (36904.0) -
self.parent のファイル名を返します。
self.parent のファイル名を返します。
@see RDoc::CodeObject#parent -
Gem
:: SourceIndex . load _ specification(file _ name) -> Gem :: Specification | nil (27622.0) -
与えられたファイル名から Ruby スクリプト形式の gemspec をロードして Gem::Specification のインスタンスを返します。
与えられたファイル名から Ruby スクリプト形式の gemspec をロードして
Gem::Specification のインスタンスを返します。
@param file_name ファイル名を指定します。
@raise SignalException gemspec をロードしているときに発生します。
@raise SystemExit gemspec をロードしているときに発生します。 -
File
. absolute _ path(file _ name , dir _ string=nil) -> String (19270.0) -
file_name を絶対パスに変換した文字列を返します。
file_name を絶対パスに変換した文字列を返します。
相対パスの場合はカレントディレクトリを基準とします。
dir_string を渡した場合はそのディレクトリを基準とします。
File.expand_path と異なり、 file_name 先頭が "~" である場合
それは展開されません。普通のディレクトリ名として処理されます。
//emlist[例][ruby]{
p Dir.getwd #=> "/home/matz/work/bar"
p ENV["HOME"] #=> "/home/mat... -
Gem
:: Installer # shebang(bin _ file _ name) -> String (19222.0) -
実行ファイル内で使用する shebang line (#! line) を表す文字列を返します。
実行ファイル内で使用する shebang line (#! line) を表す文字列を返します。
@param bin_file_name 実行ファイルの名前を指定します。 -
IRB
:: InputMethod . new(file = STDIN _ FILE _ NAME) -> IRB :: InputMethod (10504.0) -
自身を初期化します。
自身を初期化します。 -
irb (73.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 f...