304件ヒット
[1-100件を表示]
(0.093秒)
ライブラリ
- ビルトイン (4)
-
irb
/ context (12) - json (60)
- optparse (48)
- prettyprint (36)
- psych (12)
-
rexml
/ document (132)
クラス
-
IRB
:: Context (12) -
JSON
:: State (60) - OptionParser (48)
- PrettyPrint (36)
-
Psych
:: Emitter (12) -
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) - configure (12)
- group (12)
-
import
_ methods (4) - 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 (18214.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 (18202.0) -
現在のインデントの深さを返します。
現在のインデントの深さを返します。 -
OptionParser
# summary _ indent=(indent) (6263.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"]
//}... -
OptionParser
# summary _ indent -> String (6256.0) -
サマリを表示する時のインデントを文字列で返します。
...("-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, --i......nit\n", " -u, --update\n", " -h, --help\n"]
//}... -
IRB
:: Context # auto _ indent _ mode -> bool (6208.0) -
入力が次の行に継続した時に自動で字下げを行うかどうかを返します。
...入力が次の行に継続した時に自動で字下げを行うかどうかを返します。
デフォルト値は false です。
@return 自動で字下げを行う場合は true を返します。行わない場合は false
を返します。
@see IRB::Context#auto_indent_mode=... -
Psych
:: Emitter # indentation -> Integer (6201.0) -
インデントのレベルを返します。
...インデントのレベルを返します。
@see Psych::Emitter#indentation=... -
OptionParser
# summarize(to = [] , width = self . summary _ width , max = width - 1 , indent= self . summary _ indent) -> () (349.0) -
サマリを指定された to へと加えていきます。
...aram 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.summarize
# => [" -i, --init\n", " -u, --upda......te\n", " -h, --help\n"]
opts.summarize(["description\n"], 10, 8, " ")
# => ["description\n", " -i\n", " --init\n", " -u\n", " --update\n", " -h\n", " --help\n"]
//}... -
OptionParser
# summarize(to = [] , width = self . summary _ width , max = width - 1 , indent= self . summary _ indent) {|line| . . . } -> () (349.0) -
サマリを指定された to へと加えていきます。
...aram 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.summarize
# => [" -i, --init\n", " -u, --upda......te\n", " -h, --help\n"]
opts.summarize(["description\n"], 10, 8, " ")
# => ["description\n", " -i\n", " --init\n", " -u\n", " --update\n", " -h\n", " --help\n"]
//}... -
PrettyPrint
# nest(indent) { . . . } -> () (224.0) -
自身の現在のインデントを indent だけ増加させてから、ブロックを実行し、元に戻します。
...自身の現在のインデントを indent だけ増加させてから、ブロックを実行し、元に戻します。
@param indent インデントの増加分を整数で指定します。...