903件ヒット
[101-200件を表示]
(0.039秒)
別のキーワード
ライブラリ
- ビルトイン (202)
- dbm (12)
- gdbm (12)
-
net
/ http (36) -
net
/ imap (72) - nkf (12)
- observer (12)
- pstore (12)
-
rinda
/ tuplespace (12) -
rubygems
/ remote _ fetcher (192) -
rubygems
/ spec _ fetcher (144) - sdbm (12)
- socket (24)
- tsort (93)
-
yaml
/ dbm (24)
クラス
- Array (36)
- DBM (12)
- Data (6)
- GDBM (12)
-
Gem
:: RemoteFetcher (168) -
Gem
:: RemoteFetcher :: FetchError (24) -
Gem
:: SpecFetcher (144) - Hash (92)
- KeyError (16)
-
Net
:: IMAP (48) -
Net
:: IMAP :: FetchData (24) - PStore (12)
-
Rinda
:: TupleEntry (12) - SDBM (12)
- Socket (12)
- Thread (16)
-
YAML
:: DBM (24)
モジュール
-
Net
:: HTTPHeader (36) -
Socket
:: Constants (12) - TSort (93)
オブジェクト
- ENV (36)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
MSG
_ ERRQUEUE (24) -
NEWS for Ruby 2
. 5 . 0 (8) - NKF (12)
- Observable (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
_ size (12) -
fetch
_ spec (12) -
fetch
_ values (20) - 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 (36)
-
normalize
_ uri (12) -
open
_ uri _ or _ path (12) - receiver (8)
- request (12)
- reset (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件
-
SDBM
# fetch(key , ifnone = nil) {|key| . . . } -> object (18231.0) -
データベースから対応するキーを探してその要素の値を返します。
...p db1.fetch('a') #=> "aaa"
p db1.fetch('z', 'zzz') #=> "zzz"
p db1.fetch('z'){|key| [:key, key] } #=> [:key, "z"]
p db1.fetch('z', 'zzz'){|key| [:key, key] } #=> "zzz"
p db1.fetch('z') #=> IndexError... -
Net
:: HTTPHeader # fetch(key) -> String (18227.0) -
key ヘッダフィールドを返します。
...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......i.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::Get.new(uri.request_uri)
req.fetch("content-length") { |e| 99 } # => 99
//}
@see Net:... -
Net
:: HTTPHeader # fetch(key) {|hash| . . . . } -> String (18227.0) -
key ヘッダフィールドを返します。
...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......i.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::Get.new(uri.request_uri)
req.fetch("content-length") { |e| 99 } # => 99
//}
@see Net:... -
Net
:: HTTPHeader # fetch(key , default) -> String (18227.0) -
key ヘッダフィールドを返します。
...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......i.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::Get.new(uri.request_uri)
req.fetch("content-length") { |e| 99 } # => 99
//}
@see Net:... -
PStore
# fetch(name , default = PStore :: Error) -> object (18225.0) -
ルートnameに対応する値を得ます。
...# => []
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, PSt... -
Array
# fetch(nth) -> object (18221.0) -
nth 番目の要素を返します。
...しなかった場合に発生します。
//emlist[例][ruby]{
a = [1, 2, 3, 4, 5]
begin
p a.fetch(10)
rescue IndexError => err
puts err #=> index 10 out of array
end
p a.fetch(10, 999) #=> 999
result = a.fetch(10){|nth|
print "#{nth} はありません。\n"
999
}
p result #=> 999
//}... -
Array
# fetch(nth) {|nth| . . . } -> object (18221.0) -
nth 番目の要素を返します。
...しなかった場合に発生します。
//emlist[例][ruby]{
a = [1, 2, 3, 4, 5]
begin
p a.fetch(10)
rescue IndexError => err
puts err #=> index 10 out of array
end
p a.fetch(10, 999) #=> 999
result = a.fetch(10){|nth|
print "#{nth} はありません。\n"
999
}
p result #=> 999
//}... -
Array
# fetch(nth , ifnone) -> object (18221.0) -
nth 番目の要素を返します。
...しなかった場合に発生します。
//emlist[例][ruby]{
a = [1, 2, 3, 4, 5]
begin
p a.fetch(10)
rescue IndexError => err
puts err #=> index 10 out of array
end
p a.fetch(10, 999) #=> 999
result = a.fetch(10){|nth|
print "#{nth} はありません。\n"
999
}
p result #=> 999
//}... -
Rinda
:: TupleEntry # fetch(key) -> object (18207.0) -
タプルの key に対応する要素を返します。
...タプルの key に対応する要素を返します。
Rinda::TupleEntry#value.fetch(key) を返します。
@param key 要素を指定するキー
@see Rinda::TupleEntry#[]...