36件ヒット
[1-36件を表示]
(0.114秒)
ライブラリ
- json (12)
- optparse (12)
-
rexml
/ document (12)
クラス
-
JSON
:: State (12) - OptionParser (12)
モジュール
-
REXML
:: Node (12)
キーワード
-
summary
_ indent (12) -
to
_ s (12)
検索結果
先頭3件
-
JSON
:: State # indent=(string) (18314.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 = " "
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{ \"key1\":\"value1\", \"key2\":\"value2\"}"
//}... -
OptionParser
# summary _ indent -> String (6208.0) -
サマリを表示する時のインデントを文字列で返します。
...返します。
@return サマリを表示する時のインデントを文字列で返します。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.summary_indent......# => " "
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summary_indent = " "
opts.summary_indent # => " "
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
//}... -
REXML
:: Node # to _ s(indent = -1) -> String (3203.0) -
ノードを文字列に変換します。
...ノードを文字列に変換します。
@param indent このパラメータは deprecated で、無視されます...