るりまサーチ

最速Rubyリファレンスマニュアル検索!
1320件ヒット [1201-1300件を表示] (0.060秒)
トップページ > モジュール:Kernel[x] > クエリ:Kernel.#p[x] > クエリ:cc_command[x] > クエリ:Digest[x] > ライブラリ:ビルトイン[x]

別のキーワード

  1. mkmf cc_command
  2. kernel cc_command
  3. envelope cc
  4. net/imap cc
  5. cc_command mkmf

種類

キーワード

検索結果

<< < ... 11 12 13 14 > >>

Kernel$$6 -> String | nil (21015.0)

最後に成功したパターンマッチで n 番目の括弧にマッチした値が格納されます。 該当する括弧がなければ nil が入っています。(覚え方: \数字 のようなもの)

...xp.last_match(1),
Regexp.last_match(2), ... と同じ。

これらの変数はローカルスコープかつスレッドローカル、読み取り専用です。

//emlist[例][ruby]{
str = '<p><a href="http://example.com">example.com</a></p>'
if %r[<a href="(.*?)">(.*?)</a>] =~ str
p
rint $1
p
...
...rint $2
end
#=> "http://example.com"
#=> "example.com"
//}...

Kernel$$7 -> String | nil (21015.0)

最後に成功したパターンマッチで n 番目の括弧にマッチした値が格納されます。 該当する括弧がなければ nil が入っています。(覚え方: \数字 のようなもの)

...xp.last_match(1),
Regexp.last_match(2), ... と同じ。

これらの変数はローカルスコープかつスレッドローカル、読み取り専用です。

//emlist[例][ruby]{
str = '<p><a href="http://example.com">example.com</a></p>'
if %r[<a href="(.*?)">(.*?)</a>] =~ str
p
rint $1
p
...
...rint $2
end
#=> "http://example.com"
#=> "example.com"
//}...

Kernel$$8 -> String | nil (21015.0)

最後に成功したパターンマッチで n 番目の括弧にマッチした値が格納されます。 該当する括弧がなければ nil が入っています。(覚え方: \数字 のようなもの)

...xp.last_match(1),
Regexp.last_match(2), ... と同じ。

これらの変数はローカルスコープかつスレッドローカル、読み取り専用です。

//emlist[例][ruby]{
str = '<p><a href="http://example.com">example.com</a></p>'
if %r[<a href="(.*?)">(.*?)</a>] =~ str
p
rint $1
p
...
...rint $2
end
#=> "http://example.com"
#=> "example.com"
//}...

Kernel$$9 -> String | nil (21015.0)

最後に成功したパターンマッチで n 番目の括弧にマッチした値が格納されます。 該当する括弧がなければ nil が入っています。(覚え方: \数字 のようなもの)

...xp.last_match(1),
Regexp.last_match(2), ... と同じ。

これらの変数はローカルスコープかつスレッドローカル、読み取り専用です。

//emlist[例][ruby]{
str = '<p><a href="http://example.com">example.com</a></p>'
if %r[<a href="(.*?)">(.*?)</a>] =~ str
p
rint $1
p
...
...rint $2
end
#=> "http://example.com"
#=> "example.com"
//}...

Kernel.#__method__ -> Symbol | nil (21015.0)

現在のメソッド名を返します。 メソッドの外で呼ばれると nil を返します。

...ッド名を返します。
メソッドの外で呼ばれると nil を返します。

//emlist[例][ruby]{
def foo
p
__method__
end
alias :bar :foo
foo #=> :foo
bar #=> :foo
p
__method__ #=> nil
//}

現在のメソッド名が alias されたメソッドの場合でも alias 元のメソッド...

絞り込み条件を変える

Kernel.#global_variables -> [Symbol] (21015.0)

プログラム中で定義されているグローバル変数(`$'で始まる変数)名の 配列を返します。

...グラム中で定義されているグローバル変数(`$'で始まる変数)名の
配列を返します。

//emlist[例][ruby]{
p
global_variables #=> [:$;, :$-F, :$@, ... ]
//}

@see Kernel.#local_variables,Object#instance_variables,Module.constants,Module#constants,Module#class_variables...

Kernel.#local_variables -> [Symbol] (21015.0)

現在のスコープで定義されているローカル変数名の配列を返します。

...現在のスコープで定義されているローカル変数名の配列を返します。

//emlist[例][ruby]{
yuyu = 0
p
local_variables #=> [:yuyu]
//}

@see Kernel.#global_variables,Object#instance_variables,Module.constants,Module#constants,Module#class_variables...

Kernel.#String(arg) -> String (21009.0)

引数を文字列(String)に変換した結果を返します。

...、何もせず arg を返します。

@param arg 変換対象のオブジェクトです。
@raise TypeError to_s の返り値が文字列でなければ発生します。

//emlist[例][ruby]{
class Foo
def to_s
"hogehoge"
end
end

arg = Foo.new
p
String(arg) #=> "hogehoge"
//}

@see Object#...

Kernel.#test(cmd, file) -> bool | Time | Integer | nil (21009.0)

単体のファイルでファイルテストを行います。

...ルでファイルテストを行います。

@param cmd 以下に示す文字リテラル、文字列、あるいは同じ文字を表す数値
です。文字列の場合はその先頭の文字だけをコマンドとみなします。
@param file テストするファイルのパス...
...プレーンファイルである
: ?d
ファイルはディレクトリである
: ?l
ファイルはシンボリックリンクである
: ?p
ファイルは名前つきパイプ(FIFO)である
: ?S
ファイルはソケットである
: ?b
ファイルはブロックスペシ...
<< < ... 11 12 13 14 > >>