るりまサーチ

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

別のキーワード

  1. tsort each_strongly_connected_component_from
  2. prime int_from_prime_division
  3. _builtin from_name
  4. socket connect_from
  5. addrinfo connect_from

キーワード

検索結果

<< < ... 18 19 20 >>

rubygems/commands/lock_command (6.0)

指定された特定のバージョンの Gem パッケージに依存する Gem を使用するために 必要な Kernel#gem メソッドの呼び出し方法を文字列で出力します。

...gem 'actionpack', '= 1.11.2'
gem 'actionmailer', '= 1.1.5'
gem 'actionwebservice', '= 1.0.0'

Just load lockdown.rb from your application to ensure that the current
versions are loaded. Make sure that lockdown.rb is loaded *before* any
other require stat...

rubygems/commands/mirror_command (6.0)

リモートリポジトリをローカルリポジトリにミラーするためのライブラリです。

...ジトリを
ローカルにミラーします。設定ファイルは YAML で以下のように書きます。

---
- from: http://gems.example.com # source repository URI
to: /path/to/mirror # destination directory

複数の取得元と...

rubygems/commands/pristine_command (6.0)

インストールされている Gem パッケージを初期状態にするためのライブラリです。

...Arguments:
GEMNAME gem to restore to pristine condition (unless --all)
Summary:
Restores installed gems to pristine condition from files located in the gem
cache
Description:
The pristine command compares the installed gems with the contents of the
cached...

tsort (6.0)

tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。

...inputs, block]
outputs.each {|f| @dep[f] = [triple]}
@dep[triple] = inputs
end

def build(target)
each_strongly_connected_component_from(target) {|ns|
if ns.length != 1
fs = ns.delete_if {|n| Array === n}
raise TSort::Cyclic.new("cyclic dependencies: #{fs.join '...

xmlrpc (6.0)

XML-RPC を扱うためのライブラリです。

...oose between XMLParser module (Expat wrapper) and REXML/NQXML (pure Ruby) parsers
* Marshalling Ruby objects to Hashs and reconstruct them later from a Hash
* SandStorm component architecture Client interface

=== Choosing a different XML Parser or XML Writer

The examples above all use the...

絞り込み条件を変える

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

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

...emlist{
$ ruby -e '$SAFE = 1; open(ARGV[0])' hoge
-e:1:in `initialize': Insecure operation - initialize (SecurityError)
from
-e:1
//}
* ファイルテスト演算子の使用、ファイルの更新時刻比較
* 外部コマンド実行 (Kernel.#sy...

制御構造 (6.0)

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

...ループを作
ることができます。

//emlist[][ruby]{
begin
do_something # exception raised
rescue
# handles error
retry # restart from beginning
end
//}

rescue 節以外で retry が用いられた場合には例外 SyntaxError が発生
します。

=== 例外処理

====[a:raise...

Struct.[](*args) -> Struct (1.0)

(このメソッドは Struct の下位クラスにのみ定義されています) 構造体オブジェクトを生成して返します。

(このメソッドは Struct の下位クラスにのみ定義されています)
構造体オブジェクトを生成して返します。

@param args 構造体の初期値を指定します。メンバの初期値は指定されなければ nil です。

@return 構造体クラスのインスタンス。

@raise ArgumentError 構造体のメンバの数よりも多くの引数を指定した場合に発生します。

//emlist[例][ruby]{
Foo = Struct.new(:foo, :bar)
foo = Foo.new(1)
p foo.values # => [1, nil]
//}

Struct.new(*args) -> Struct (1.0)

(このメソッドは Struct の下位クラスにのみ定義されています) 構造体オブジェクトを生成して返します。

(このメソッドは Struct の下位クラスにのみ定義されています)
構造体オブジェクトを生成して返します。

@param args 構造体の初期値を指定します。メンバの初期値は指定されなければ nil です。

@return 構造体クラスのインスタンス。

@raise ArgumentError 構造体のメンバの数よりも多くの引数を指定した場合に発生します。

//emlist[例][ruby]{
Foo = Struct.new(:foo, :bar)
foo = Foo.new(1)
p foo.values # => [1, nil]
//}

URI::Generic#-(src) -> URI::Generic (1.0)

与えられた URI を表す src からの相対パスを返します。

与えられた URI を表す src からの相対パスを返します。

@param src 自身の相対パスを算出するための、ルートとなる Absolute URI を与えます。

例:
require 'uri'
p URI.parse('http://example.com/foo/bar.html') - 'http://example.com/'
#=> #<URI::Generic:0x20100256 URL:foo/bar.html>

絞り込み条件を変える

<< < ... 18 19 20 >>