756件ヒット
[1-100件を表示]
(0.079秒)
種類
- インスタンスメソッド (610)
- 特異メソッド (54)
- ライブラリ (48)
- クラス (24)
- 文書 (20)
ライブラリ
- ビルトイン (138)
- dbm (12)
- gdbm (12)
-
net
/ http (36) -
net
/ imap (84) - pstore (12)
-
rinda
/ tuplespace (24) -
rubygems
/ remote _ fetcher (120) -
rubygems
/ spec _ fetcher (168) - sdbm (12)
- tsort (70)
クラス
- Array (36)
- DBM (12)
- Data (6)
- GDBM (12)
-
Gem
:: RemoteFetcher (120) -
Gem
:: SpecFetcher (156) - Hash (72)
- KeyError (16)
-
Net
:: IMAP (48) -
Net
:: IMAP :: FetchData (24) - PStore (12)
-
Rinda
:: TupleEntry (24) - SDBM (12)
- Thread (8)
モジュール
-
Net
:: HTTPHeader (36) - TSort (70)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - FetchData (12)
-
NEWS for Ruby 2
. 5 . 0 (8) - SpecFetcher (12)
- [] (32)
- 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
_ spec (12) - fetcher (12)
- fetcher= (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) -
net
/ http (12) -
net
/ imap (12) - new (24)
-
open
_ uri _ or _ path (12) - receiver (8)
- request (12)
- reset (12)
-
rubygems
/ commands / fetch _ command (12) -
rubygems
/ spec _ fetcher (12) - seqno (12)
- specs (12)
- store (12)
-
strongly
_ connected _ components (12) - tsort (12)
-
uid
_ fetch (12) -
uid
_ store (12) - unescape (12)
-
warn
_ legacy (12)
検索結果
先頭5件
-
Gem
:: SpecFetcher # fetch(dependency , all = false , matching _ platform = true) -> Array (24201.0) -
依存関係を満たす gemspec の配列を返します。
...依存関係を満たす gemspec の配列を返します。
@param dependency 依存関係を指定します。
@param all 真を指定するとマッチする全てのバージョンの情報を返します。
@param matching_platform 偽を指定すると全てのプラットフォームの情......報を返します。
@see Gem::Dependency... -
Net
:: IMAP # fetch(set , attr) -> [Net :: IMAP :: FetchData] (21377.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 (21231.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 (21127.0) -
key ヘッダフィールドを返します。
...それを全て ", " で連結した文字列を返します。
key は大文字小文字を区別しません。
@param key ヘッダフィール名を文字列で与えます。
@param default 該当するキーが登録されていない時の返り値を指定します。
@raise IndexError 引......る][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 (21127.0) -
key ヘッダフィールドを返します。
...それを全て ", " で連結した文字列を返します。
key は大文字小文字を区別しません。
@param key ヘッダフィール名を文字列で与えます。
@param default 該当するキーが登録されていない時の返り値を指定します。
@raise IndexError 引......る][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 (21127.0) -
key ヘッダフィールドを返します。
...それを全て ", " で連結した文字列を返します。
key は大文字小文字を区別しません。
@param key ヘッダフィール名を文字列で与えます。
@param default 該当するキーが登録されていない時の返り値を指定します。
@raise IndexError 引......る][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 (21107.0) -
タプルの key に対応する要素を返します。
...タプルの key に対応する要素を返します。
Rinda::TupleEntry#value.fetch(key) を返します。
@param key 要素を指定するキー
@see Rinda::TupleEntry#[]... -
Gem
:: SpecFetcher # fetch _ spec(spec , source _ uri) -> object (18301.0) -
@todo
...@todo
@param spec
@param source_uri... -
Hash
# fetch(key) -> object (18187.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)...