340件ヒット
[1-100件を表示]
(0.074秒)
ライブラリ
- ビルトイン (4)
-
irb
/ context (24) - json (72)
- optparse (48)
- prettyprint (36)
- psych (24)
-
rexml
/ document (132)
クラス
-
IRB
:: Context (24) -
JSON
:: State (72) - OptionParser (48)
- PrettyPrint (36)
-
Psych
:: Emitter (24) -
REXML
:: AttlistDecl (12) -
REXML
:: Attribute (12) -
REXML
:: Declaration (12) -
REXML
:: DocType (12) -
REXML
:: Document (24) -
REXML
:: Element (12) -
REXML
:: Entity (12) -
REXML
:: ExternalEntity (12) -
REXML
:: NotationDecl (12) - Refinement (4)
モジュール
-
REXML
:: Node (12)
キーワード
-
auto
_ indent _ mode (12) -
auto
_ indent _ mode= (12) - configure (12)
- group (12)
-
import
_ methods (4) - indent= (12)
- indentation (12)
- indentation= (12)
- merge (12)
- nest (12)
- summarize (24)
-
summary
_ indent (12) -
summary
_ indent= (12) -
to
_ h (12) -
to
_ hash (12) -
to
_ s (12) - write (120)
検索結果
先頭5件
-
JSON
:: State # indent -> String (18114.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\"}"
//}... -
PrettyPrint
# indent -> Integer (18102.0) -
現在のインデントの深さを返します。
現在のインデントの深さを返します。 -
OptionParser
# summary _ indent=(indent) (6227.0) -
サマリを表示する時のインデントを文字列で指定します。
...@param indent サマリを表示する時に使われるインデントを文字列で指定します。
//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"]
//}... -
JSON
:: State # indent=(string) (6120.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\"}"
json_state.indent = " "
JSON.generate({key1: "value1", key2: "value2"}, json_sta... -
OptionParser
# summary _ indent -> String (6120.0) -
サマリを表示する時のインデントを文字列で返します。
...s.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, --updat... -
IRB
:: Context # auto _ indent _ mode -> bool (6108.0) -
入力が次の行に継続した時に自動で字下げを行うかどうかを返します。
...入力が次の行に継続した時に自動で字下げを行うかどうかを返します。
デフォルト値は false です。
@return 自動で字下げを行う場合は true を返します。行わない場合は false
を返します。
@see IRB::Context#auto_indent_mode=... -
IRB
:: Context # auto _ indent _ mode=(val) (6108.0) -
入力が次の行に継続した時に自動で字下げを行うかどうかを val に設定します。
...します。
@param val true を指定した場合、自動で字下げを行います。false を指定し
た場合は自動で字下げを行いません。
IRB::Context#prompt_mode の変更に影響を受ける事に注意してください。
@see IRB::Context#auto_indent_mode... -
Psych
:: Emitter # indentation -> Integer (6101.0) -
インデントのレベルを返します。
...インデントのレベルを返します。
@see Psych::Emitter#indentation=... -
Psych
:: Emitter # indentation=(level) (6101.0) -
インデントのレベルを指定します。
...インデントのレベルを指定します。
1 から 9 までの整数で指定します。
@param level インデントレベル
@see Psych::Emitter#indentation...