4件ヒット
[1-4件を表示]
(0.082秒)
ライブラリ
- json (1)
-
rexml
/ document (3)
クラス
-
JSON
:: State (1) -
REXML
:: AttlistDecl (1) -
REXML
:: Attribute (1) -
REXML
:: NotationDecl (1)
検索結果
先頭4件
-
JSON
:: State # indent=(string) (63322.0) -
インデントに使用する文字列をセットします。
インデントに使用する文字列をセットします。
@param string インデントに使用する文字列を指定します。
//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\"}"
json_state.indent = "... -
REXML
:: AttlistDecl # write(out , indent = -1) -> () (9007.0) -
self を out に出力します。
self を out に出力します。
@param out 出力先の IO オブジェクト
@param indent インデント数(無視されます) -
REXML
:: Attribute # write(output , indent = -1) -> object (9007.0) -
output に self の情報を name='value' という形式で書き込みます。
output に self の情報を name='value' という形式で書き込みます。
output が返ります。
@param output 書き込み先の IO オブジェクト
@param indent インデントレベル、ここでは無視される -
REXML
:: NotationDecl # write(output , indent = -1) (9007.0) -
output へ self を文字列化して出力します。
output へ self を文字列化して出力します。
このメソッドは deprecated です。REXML::Formatter で
出力してください。
@param output 出力先の IO オブジェクト
@param indent インデントの大きさ。無視されます。