917件ヒット
[1-100件を表示]
(0.096秒)
ライブラリ
- ビルトイン (122)
- dbm (12)
-
net
/ http (36) -
net
/ imap (72) - nkf (12)
- observer (12)
- pstore (12)
-
rinda
/ tuplespace (24) -
rubygems
/ remote _ fetcher (216) -
rubygems
/ spec _ fetcher (168) -
rubygems
/ test _ utilities (24) - socket (24)
- tsort (93)
クラス
- Array (36)
- DBM (12)
- Data (6)
-
Gem
:: RemoteFetcher (180) -
Gem
:: RemoteFetcher :: FetchError (24) -
Gem
:: SpecFetcher (156) - KeyError (16)
-
Net
:: IMAP (48) -
Net
:: IMAP :: FetchData (24) - PStore (12)
-
Rinda
:: TupleEntry (24) - Socket (12)
- Thread (16)
モジュール
-
Net
:: HTTPHeader (36) -
Socket
:: Constants (12) - TSort (93)
オブジェクト
- ENV (36)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - FakeFetcher (12)
- FetchError (12)
- KeyError (12)
-
MSG
_ ERRQUEUE (24) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 5 . 0 (8) - NKF (12)
- Observable (12)
- RemoteFetcher (12)
- SpecFetcher (12)
- [] (20)
- attr (12)
-
cache
_ dir (12) -
connection
_ for (12) - define (6)
- dir (12)
- download (12)
-
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - escape (12)
-
fetch
_ path (12) -
fetch
_ size (12) -
fetch
_ spec (12) - fetcher (24)
- fetcher= (24)
-
file
_ uri? (12) -
find
_ matching (12) -
get
_ file _ uri _ path (12) -
get
_ proxy _ from _ env (12) - key (8)
-
latest
_ specs (12) -
legacy
_ repos (12) - list (12)
-
load
_ specs (12) - new (12)
-
normalize
_ uri (12) -
open
_ uri _ or _ path (12) - receiver (8)
- request (12)
- reset (12)
-
rubygems
/ commands / fetch _ command (12) -
rubygems
/ remote _ fetcher (12) -
rubygems
/ spec _ fetcher (12) - seqno (12)
- specs (12)
- store (12)
-
strongly
_ connected _ components (12) - tsort (24)
-
tsort
_ each (23) -
uid
_ fetch (12) -
uid
_ store (12) - unescape (12)
- uri (12)
-
warn
_ legacy (12)
検索結果
先頭5件
-
rubygems
/ commands / fetch _ command (32006.0) -
Gem パッケージをダウンロードしてカレントディレクトリに保存するためのライブラリです。
...m fetch GEMNAME [GEMNAME ...] [options]
Options:
-v, --version VERSION 指定されたバージョンの Gem を取得します
--platform PLATFORM 指定されたプラットフォームの Gem を取得します
Local/Remote Options:
-B, --bulk-thr......Threshold for switching to bulk
synchronization (default 1000)
-p, --[no-]http-proxy [URL] リモートの操作に HTTP プロクシを使用します
--source URL Gem パッケージのリモートリポジトリの URL......を表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE 指定された設定ファイルを使用します
--backtrace バックトレー... -
rubygems
/ remote _ fetcher (32000.0) -
リモートソースから Gem パッケージや Gem パッケージの情報を取得するためのライブラリです。
リモートソースから Gem パッケージや Gem パッケージの情報を取得するためのライブラリです。 -
rubygems
/ spec _ fetcher (32000.0) -
リモートリポジトリから Gem のメタデータを取得して更新するためのライブラリです。
リモートリポジトリから Gem のメタデータを取得して更新するためのライブラリです。 -
Gem
:: SpecFetcher # fetch(dependency , all = false , matching _ platform = true) -> Array (24201.0) -
依存関係を満たす gemspec の配列を返します。
...依存関係を満たす gemspec の配列を返します。
@param dependency 依存関係を指定します。
@param all 真を指定するとマッチする全てのバージョンの情報を返します。
@param matching_platform 偽を指定すると全てのプラットフォームの情... -
Net
:: HTTPHeader # fetch(key) -> String (21227.0) -
key ヘッダフィールドを返します。
...す。
key は大文字小文字を区別しません。
@param key ヘッダフィール名を文字列で与えます。
@param default 該当するキーが登録されていない時の返り値を指定します。
@raise IndexError 引数defaultもブロックも与えられてない時、キ......する][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("user-agent") # => "Ruby"
//}
//emlist[例 key のみ指定。key が存在しない][ruby]{
require 'net/http'
begin
req.fetch("content-length")
rescue =>......e
e # => #<KeyError: key not found: "content-length">
end
//}
//emlist[例 key , default を指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length", "default") # => "default"
//}
//emlist[例 key... -
Net
:: HTTPHeader # fetch(key) {|hash| . . . . } -> String (21227.0) -
key ヘッダフィールドを返します。
...す。
key は大文字小文字を区別しません。
@param key ヘッダフィール名を文字列で与えます。
@param default 該当するキーが登録されていない時の返り値を指定します。
@raise IndexError 引数defaultもブロックも与えられてない時、キ......する][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("user-agent") # => "Ruby"
//}
//emlist[例 key のみ指定。key が存在しない][ruby]{
require 'net/http'
begin
req.fetch("content-length")
rescue =>......e
e # => #<KeyError: key not found: "content-length">
end
//}
//emlist[例 key , default を指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length", "default") # => "default"
//}
//emlist[例 key... -
Net
:: HTTPHeader # fetch(key , default) -> String (21227.0) -
key ヘッダフィールドを返します。
...す。
key は大文字小文字を区別しません。
@param key ヘッダフィール名を文字列で与えます。
@param default 該当するキーが登録されていない時の返り値を指定します。
@raise IndexError 引数defaultもブロックも与えられてない時、キ......する][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("user-agent") # => "Ruby"
//}
//emlist[例 key のみ指定。key が存在しない][ruby]{
require 'net/http'
begin
req.fetch("content-length")
rescue =>......e
e # => #<KeyError: key not found: "content-length">
end
//}
//emlist[例 key , default を指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length", "default") # => "default"
//}
//emlist[例 key... -
PStore
# fetch(name , default = PStore :: Error) -> object (21225.0) -
ルートnameに対応する値を得ます。
...し、
与えられていなければ例外 PStore::Error が発生します。
@param name 探索するルート。
@param default name に対応するルートが登録されていない場合に返す値を指定する。
@raise PStore::Error name に対応するルートが登録されてい......す。
例:
require 'pstore'
db = PStore.new("/tmp/foo")
db.transaction do
p db.roots # => []
ary = db["root"] = [1,2,3,4]
ary[0] = [1,1.5]
end
db.transaction(true) do |pstore|
pstore.fetch("root") # => [[1, 1.5], 2, 3, 4]
pstore.fetch("root", 'aaa') #......=> [[1, 1.5], 2, 3, 4]
pstore.fetch("not_root") # => 例外発生
end
@see Hash#fetch, PStore#[]... -
Thread
# fetch(name , default = nil) {|name| . . . } -> object (21137.0) -
name に関連づけられたスレッドに固有のデータを返します。 name に対応するスレッド固有データがない時には、引数 default が 与えられていればその値を、ブロックが与えられていれば そのブロックを評価した値を返します。
...クを評価した値を返します。
@param name スレッド固有データのキーを文字列か Symbol で指定します。
@param default name に対応するスレッド固有データがない時の返り値を指定します。
@raise KeyError 引数defaultもブロックも与えら......と発生します。
//emlist[例][ruby]{
th = Thread.new { Thread.current[:name] = 'A' }
th.join
th.fetch(:name) # => "A"
th.fetch(:fetch, 'B') # => "B"
th.fetch('name') {|name| "Thread" + name} # => "A"
th.fetch('fetch') {|name| "Thread" + name} # => "Threadfetch"
//}
@see Thread#[]...