84件ヒット
[1-84件を表示]
(0.077秒)
ライブラリ
- json (60)
-
net
/ http (12) -
rubygems
/ remote _ fetcher (12)
クラス
-
Gem
:: RemoteFetcher (12) -
JSON
:: State (60) -
Net
:: HTTP (12)
キーワード
- depth= (12)
-
max
_ nesting= (12) -
open
_ uri _ or _ path (12) - propfind (12)
-
to
_ h (12) -
to
_ hash (12)
検索結果
先頭5件
-
JSON
:: State # depth -> Integer (21118.0) -
This integer returns the current depth of data structure nesting.
...This integer returns the current depth of data structure nesting.... -
JSON
:: State # depth=(depth) (9219.0) -
This sets the maximum level of data structure nesting in the generated JSON to the integer depth, max_nesting = 0 if no maximum should be checked.
...This sets the maximum level of data structure nesting in the generated
JSON to the integer depth, max_nesting = 0 if no maximum should be
checked.... -
Gem
:: RemoteFetcher # open _ uri _ or _ path(uri , last _ modified = nil , head = false , depth = 0) -> StringIO | File (6220.0) -
@param uri URI を指定します。
...情報のみ取得します。
@param depth 現在のリダイレクト回数を指定します。
@raise Gem::RemoteFetcher::FetchError デフォルトでは 11 回リダイレクトした場合に発生します。
depth を指定すると 10 - depth 回より多くリダイレクトし... -
JSON
:: State # max _ nesting=(depth) (3102.0) -
生成される JSON 形式の文字列のネストの深さの最大値をセットします。
...せん。
//emlist[例][ruby]{
require "json"
json_state = JSON::State.new(max_nesting: 2)
json_state.max_nesting # => 2
JSON.generate([[]], json_state)
json_state.max_nesting = 3
json_state.max_nesting # => 3
JSON.generate([[[[]]]], json_state) # => JSON::NestingError
//}... -
JSON
:: State # to _ h -> Hash (3007.0) -
自身をハッシュに変換します。
...uire "json"
require "pp"
json_state = JSON::State.new
pp json_state.to_h
# => {:indent=>"",
# :space=>"",
# :space_before=>"",
# :object_nl=>"",
# :array_nl=>"",
# :allow_nan=>false,
# :ascii_only=>false,
# :max_nesting=>100,
# :depth=>0,
# :buffer_initial_lengt... -
JSON
:: State # to _ hash -> Hash (3007.0) -
自身をハッシュに変換します。
...uire "json"
require "pp"
json_state = JSON::State.new
pp json_state.to_h
# => {:indent=>"",
# :space=>"",
# :space_before=>"",
# :object_nl=>"",
# :array_nl=>"",
# :allow_nan=>false,
# :ascii_only=>false,
# :max_nesting=>100,
# :depth=>0,
# :buffer_initial_lengt... -
Net
:: HTTP # propfind(path , body , initheader = {& # 39;Depth& # 39; => & # 39;0& # 39;}) -> Net :: HTTPResponse (202.0) -
サーバの path に PROPFIND リクエストを ヘッダを initheader, ボディを body として送ります。
...サーバの path に PROPFIND リクエストを
ヘッダを initheader, ボディを body として送ります。
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param body リクエスト...