るりまサーチ

最速Rubyリファレンスマニュアル検索!
282件ヒット [1-100件を表示] (0.019秒)

別のキーワード

  1. format spec
  2. format spec=
  3. installer spec
  4. oldformat spec
  5. uninstaller spec

検索結果

<< 1 2 3 > >>

制御構造 (23042.0)

制御構造 条件分岐: * if * unless * case 繰り返し: * while * until * for * break * next * redo * retry 例外処理: * raise * begin その他: * return * BEGIN * END

...の右辺に置くと
syntax error になります)。

RubyはC言語やPerlから引き継いだ制御構造を持ちますが、
その他にd:spec/call#blockという
制御構造の抽象化を援助する機能があります。ブロック付きメソッド呼び出しは
繰り返しを始...
...e {a: 1, b: 2, c: 3}
in a: Integer => m
"matched: #{m}"
else
"not matched"
end
# => "matched: 1"
//}

パターンマッチ構文についてはspec/pattern_matchingで説明しています。

=== 繰り返し

====[a:while] while

//emlist[例][ruby]{
ary = [0,2,4,8,16,32,64,128,256,512,1024]...
...略された場合には nil を戻り値とします。

トップレベルで return した場合はプログラムが終了します。
require, load されたファイル内のトップレベルで return した場合は呼び出し元に返ります。

====[a:BEGIN] BEGIN

//emlist[例][ruby]{...

セキュリティモデル (23018.0)

セキュリティモデル RubyにはCGI等のプログラミングを安全に行うことを助ける為に、セキュリティ 機構が備わっています。

...部コマンド実行 (Kernel.#system, Kernel.#exec, Kernel.#`, Kernel.#spawn など)
* Kernel.#eval
* トップレベルへの Kernel.#load (第二引数を指定してラップすれば実行可能)
* Kernel.#require
* Kernel.#trap


==== レベル 2

===== 汚染される...
...etpgid Process.#setsid
Process.#setpriority Process.#egid= Process.#kill
* 危険なパスからの Kernel.#load
* 汚染された文字列を引数にしての Kernel.#load (ラップされていても)
* Kernel.#syscall
* Kernel.#exit!
* Kernel.#trap

==== レベル 3

生成...
...部コマンド実行 (Kernel.#system, Kernel.#exec, Kernel.#`, Kernel.#spawn など)
* Kernel.#eval
* トップレベルへの Kernel.#load (第二引数を指定してラップすれば実行可能)
* Kernel.#require
* Kernel.#trap


==== レベル 2

廃止されました...

パターンマッチ (23006.0)

パターンマッチ * patterns * variable_binding * variable_pinning * matching_non_primitive_objects * guard_clauses * current_feature_status * pattern_syntax * some_undefined_behavior_examples

...d

def deconstruct
puts "deconstruct called"
[@x, @y]
end

def deconstruct_keys(keys)
puts "deconstruct_keys called with #{keys.inspect}"
{x: @x, y: @y}
end
end

case Point.new(1, -2)
in px, Integer # パターンと変数への束縛も動きます
"matched: #{px}"
else...
...、既に終了している
{a: 1, b: 2} in {a:}
//}

つまり、フラグの切り替えによって影響を受けるのは切り替え以降に load されたファイルや `eval` されたコードに限られます。

代わりに、コマンドラインオプションとして 『-W:no-expe...
...は、既に終了している
[0] => [*, 0, *]
//}

つまり、フラグの切り替えによって影響を受けるのは切り替え以降に load されたファイルや `eval` されたコードに限られます。

代わりに、コマンドラインオプションとして 『-W:no-exper...

Gem::Specification.load(filename) -> Gem::Specification (21201.0)

gemspec ファイルをロードします。

...gemspec ファイルをロードします。

@param filename gemspec のファイル名を指定します。

@raise StandardError gemspec ファイル内でこのメソッドを呼んでいる場合に発生します。...

Gem::SpecFetcher#load_specs(source_uri, file) -> object (15201.0)

指定された source_uri, file から gemspec をロードします。

...指定された source_uri, file から gemspec をロードします。

また、内部ではキャッシュの更新も行っています。

@param source_uri gemspec の置いてある URI を指定します。

@param file gemspec のファイル名を指定します。...

絞り込み条件を変える

Gem::Package::TarInput#load_gemspec(io) -> Gem::Specification | nil (12301.0)

YAML 形式の gemspec を io から読み込みます。

...YAML 形式の gemspec を io から読み込みます。

@param io 文字列か IO オブジェクトを指定します。

@see Gem::Specification.from_yaml...

Gem::SourceIndex.load_specification(file_name) -> Gem::Specification | nil (12301.0)

与えられたファイル名から Ruby スクリプト形式の gemspec をロードして Gem::Specification のインスタンスを返します。

...クリプト形式の gemspec をロードして
Gem::Specification のインスタンスを返します。

@param file_name ファイル名を指定します。

@raise SignalException gemspec をロードしているときに発生します。

@raise SystemExit gemspec をロードしている...

Gem::Commands::BuildCommand#load_gemspecs(filename) -> Array (12201.0)

gemspec ファイルをロードします。

...gemspec ファイルをロードします。

@param filename ファイル名を指定します。...

Gem::Specification._load(str) -> Gem::Specification (9201.0)

マーシャルされたデータをロードするためのメソッドです。

マーシャルされたデータをロードするためのメソッドです。

@param str マーシャルされたデータを指定します。
<< 1 2 3 > >>