144件ヒット
[1-100件を表示]
(0.124秒)
ライブラリ
- json (72)
- psych (24)
-
rexml
/ document (48)
クラス
-
JSON
:: State (72) -
Psych
:: Emitter (24) -
REXML
:: AttlistDecl (12) -
REXML
:: Attribute (12) -
REXML
:: Declaration (12) -
REXML
:: NotationDecl (12)
キーワード
- configure (12)
- indent= (12)
- indentation (12)
- indentation= (12)
- merge (12)
-
to
_ h (12) -
to
_ hash (12) - write (48)
検索結果
先頭5件
-
JSON
:: State # indent -> String (21114.0) -
インデントに使用する文字列を返します。
...インデントに使用する文字列を返します。
//emlist[例][ruby]{
require "json"
json_state = JSON::State.new(indent: "\t")
json_state.indent # => "\t"
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"
//}... -
Psych
:: Emitter # indentation -> Integer (12201.0) -
インデントのレベルを返します。
...インデントのレベルを返します。
@see Psych::Emitter#indentation=... -
Psych
:: Emitter # indentation=(level) (12201.0) -
インデントのレベルを指定します。
...インデントのレベルを指定します。
1 から 9 までの整数で指定します。
@param level インデントレベル
@see Psych::Emitter#indentation... -
JSON
:: State # indent=(string) (9120.0) -
インデントに使用する文字列をセットします。
...quire "json"
json_state = JSON::State.new(indent: "\t")
json_state.indent # => "\t"
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"
json_state.indent = " "
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{ \"key1\"... -
REXML
:: AttlistDecl # write(out , indent = -1) -> () (3108.0) -
self を out に出力します。
...self を out に出力します。
@param out 出力先の IO オブジェクト
@param indent インデント数(無視されます)... -
REXML
:: Attribute # write(output , indent = -1) -> object (3108.0) -
output に self の情報を name='value' という形式で書き込みます。
...output に self の情報を name='value' という形式で書き込みます。
output が返ります。
@param output 書き込み先の IO オブジェクト
@param indent インデントレベル、ここでは無視される... -
REXML
:: Declaration # write(output , indent) -> () (3108.0) -
output にノードを出力します。
...output にノードを出力します。
このメソッドは deprecated です。REXML::Formatter で
出力してください。
@param output 出力先の IO オブジェクト
@param indent インデントの大きさ。無視されます。... -
REXML
:: NotationDecl # write(output , indent = -1) (3108.0) -
output へ self を文字列化して出力します。
...output へ self を文字列化して出力します。
このメソッドは deprecated です。REXML::Formatter で
出力してください。
@param output 出力先の IO オブジェクト
@param indent インデントの大きさ。無視されます。... -
JSON
:: State # configure(options = {}) -> self (3025.0) -
与えられたハッシュで自身を設定します。
...いては JSON::State.new を参照してください。
@param options このオブジェクトの設定をするためのハッシュを指定します。
//emlist[例][ruby]{
require "json"
json_state = JSON::State.new(indent: "\t")
json_state.indent # => "\t"
JSON.generate({key1: "value1", ke......y2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"
json_state.configure(indent: " ")
json_state.indent # => " "
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{ \"key1\":\"value1\", \"key2\":\"value2\"}"
//}
@see JSON::State.new...