463件ヒット
[1-100件を表示]
(0.170秒)
ライブラリ
- ビルトイン (92)
- dbm (12)
- gdbm (12)
-
net
/ http (36) -
net
/ imap (48) - pstore (12)
-
rinda
/ tuplespace (24) -
rubygems
/ remote _ fetcher (108) -
rubygems
/ spec _ fetcher (84) - sdbm (12)
- tsort (23)
クラス
- Array (36)
- DBM (12)
- GDBM (12)
-
Gem
:: RemoteFetcher (108) -
Gem
:: SpecFetcher (84) - Hash (48)
-
Net
:: IMAP (48) - PStore (12)
-
Rinda
:: TupleEntry (24) - SDBM (12)
- Thread (8)
モジュール
-
Net
:: HTTPHeader (36) - TSort (23)
キーワード
- [] (32)
-
cache
_ dir (12) -
connection
_ for (12) - download (12)
-
each
_ strongly _ connected _ component _ from (23) - escape (12)
-
fetch
_ path (12) -
fetch
_ spec (12) -
find
_ matching (12) -
get
_ file _ uri _ path (12) - list (12)
-
load
_ specs (12) -
open
_ uri _ or _ path (12) - request (12)
- reset (12)
- store (12)
-
uid
_ fetch (12) -
uid
_ store (12) - unescape (12)
-
warn
_ legacy (12)
検索結果
先頭5件
-
Gem
:: SpecFetcher # fetch(dependency , all = false , matching _ platform = true) -> Array (24220.0) -
依存関係を満たす gemspec の配列を返します。
...依存関係を満たす gemspec の配列を返します。
@param dependency 依存関係を指定します。
@param all 真を指定するとマッチする全てのバージョンの情報を返します。
@param matching_platform 偽を指定すると全てのプラットフォームの情......報を返します。
@see Gem::Dependency... -
Net
:: IMAP # fetch(set , attr) -> [Net :: IMAP :: FetchData] (21390.0) -
FETCH コマンドを送り、メールボックス内のメッセージに 関するデータを取得します。
...
FETCH コマンドを送り、メールボックス内のメッセージに
関するデータを取得します。
Net::IMAP#examine もしくは Net::IMAP#select で
指定したメールボックスを対象とします。
set で対象とするメッセージを指定します。
これには......ついては Net::IMAP::FetchData#attr
を見てください。
例:
p imap.fetch(6..8, "UID")
#=> [#<Net::IMAP::FetchData seqno=6, attr={"UID"=>98}>, #<Net::IMAP::FetchData seqno=7, attr={"UID"=>99}>, #<Net::IMAP::FetchData seqno=8, attr={"UID"=>100}>]
p imap.fetch(6, "BODY[HEADER.FIELDS (......<Net::IMAP::FetchData seqno=6, attr={"BODY[HEADER.FIELDS (SUBJECT)]"=>"Subject: test\r\n\r\n"}>]
data = imap.uid_fetch(98, ["RFC822.SIZE", "INTERNALDATE"])[0]
p data.seqno
#=> 6
p data.attr["RFC822.SIZE"]
#=> 611
p data.attr["INTERNALDATE"]
#=> "12-Oct-2000 22:40:59 +0900"
p data.att... -
PStore
# fetch(name , default = PStore :: Error) -> object (21244.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#[]... -
Net
:: HTTPHeader # fetch(key) -> String (21140.0) -
key ヘッダフィールドを返します。
...れを全て ", " で連結した文字列を返します。
key は大文字小文字を区別しません。
@param key ヘッダフィール名を文字列で与えます。
@param default 該当するキーが登録されていない時の返り値を指定します。
@raise IndexError 引数d......る][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......ttp'
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 とブロックを指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::... -
Net
:: HTTPHeader # fetch(key) {|hash| . . . . } -> String (21140.0) -
key ヘッダフィールドを返します。
...れを全て ", " で連結した文字列を返します。
key は大文字小文字を区別しません。
@param key ヘッダフィール名を文字列で与えます。
@param default 該当するキーが登録されていない時の返り値を指定します。
@raise IndexError 引数d......る][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......ttp'
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 とブロックを指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::... -
Net
:: HTTPHeader # fetch(key , default) -> String (21140.0) -
key ヘッダフィールドを返します。
...れを全て ", " で連結した文字列を返します。
key は大文字小文字を区別しません。
@param key ヘッダフィール名を文字列で与えます。
@param default 該当するキーが登録されていない時の返り値を指定します。
@raise IndexError 引数d......る][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......ttp'
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 とブロックを指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::... -
Rinda
:: TupleEntry # fetch(key) -> object (21114.0) -
タプルの key に対応する要素を返します。
...タプルの key に対応する要素を返します。
Rinda::TupleEntry#value.fetch(key) を返します。
@param key 要素を指定するキー
@see Rinda::TupleEntry#[]... -
Gem
:: SpecFetcher # fetch _ spec(spec , source _ uri) -> object (18314.0) -
@todo
...@todo
@param spec
@param source_uri... -
Hash
# fetch(key) -> object (18200.0) -
key に関連づけられた値を返します。該当するキーが登録されてい ない時には、引数 default が与えられていればその値を、ブロッ クが与えられていればそのブロックを評価した値を返します。
...のブロックを評価した値を返します。
fetchはハッシュ自身にデフォルト値が設定されていても単に無視します(挙動に変化がありません)。
@param key 探索するキーを指定します。
@param default 該当するキーが登録されていな......l}
p h[:one],h[:two] #=> nil,nil これではキーが存在するのか判別できない。
p h.fetch(:one) #=> nil
p h.fetch(:two) # エラー key not found (KeyError)
p h.fetch(:two,"error") #=> "error"
p h......} #=> "two not exist"
p h.fetch(:two, "error"){|key| #=> "two not exist"
"#{key} not exist" # warning: block supersedes default value argument
} # 警告が表示される。
h.default = "default"
p h.fetch(:two)...