253件ヒット
[1-100件を表示]
(0.226秒)
ライブラリ
-
irb
/ context (22) - json (66)
- optparse (44)
- psych (22)
-
rexml
/ document (99)
クラス
-
IRB
:: Context (22) -
JSON
:: State (66) - OptionParser (44)
-
Psych
:: Emitter (22) -
REXML
:: AttlistDecl (11) -
REXML
:: Attribute (11) -
REXML
:: Declaration (11) -
REXML
:: DocType (11) -
REXML
:: Document (22) -
REXML
:: Element (11) -
REXML
:: ExternalEntity (11) -
REXML
:: NotationDecl (11)
キーワード
-
auto
_ indent _ mode (11) -
auto
_ indent _ mode= (11) - configure (11)
- indent= (11)
- indentation (11)
- indentation= (11)
- merge (11)
- summarize (22)
-
summary
_ indent (11) -
summary
_ indent= (11) -
to
_ h (11) -
to
_ hash (11) - write (99)
検索結果
先頭5件
-
JSON
:: State # indent -> String (27214.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\"}"
//}... -
OptionParser
# summary _ indent=(indent) (21563.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 (21356.0) -
サマリを表示する時のインデントを文字列で返します。
...rn サマリを表示する時のインデントを文字列で返します。
//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.summa......rize
# => [" -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"]
//}... -
IRB
:: Context # auto _ indent _ mode -> bool (21308.0) -
入力が次の行に継続した時に自動で字下げを行うかどうかを返します。
...入力が次の行に継続した時に自動で字下げを行うかどうかを返します。
デフォルト値は false です。
@return 自動で字下げを行う場合は true を返します。行わない場合は false
を返します。
@see IRB::Context#auto_indent_mode=... -
IRB
:: Context # auto _ indent _ mode=(val) (21308.0) -
入力が次の行に継続した時に自動で字下げを行うかどうかを val に設定します。
...al に設定します。
@param val true を指定した場合、自動で字下げを行います。false を指定し
た場合は自動で字下げを行いません。
IRB::Context#prompt_mode の変更に影響を受ける事に注意してください。
@see IRB::Context#auto_in......dent_mode... -
Psych
:: Emitter # indentation -> Integer (18301.0) -
インデントのレベルを返します。
...インデントのレベルを返します。
@see Psych::Emitter#indentation=... -
Psych
:: Emitter # indentation=(level) (18301.0) -
インデントのレベルを指定します。
...インデントのレベルを指定します。
1 から 9 までの整数で指定します。
@param level インデントレベル
@see Psych::Emitter#indentation... -
JSON
:: State # indent=(string) (15220.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
# summarize(to = [] , width = self . summary _ width , max = width - 1 , indent= self . summary _ indent) -> () (12777.0) -
サマリを指定された to へと加えていきます。
...ん。
@param to サマリを出力するオブジェクトを指定します。to には << メソッドが定義されいる必要があります。
@param width サマリの幅を整数で指定します。
@param max サマリの最大幅を整数で指定します。
@param indent サマリ......tparse"
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, --update\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| . . . } -> () (12777.0) -
サマリを指定された to へと加えていきます。
...ん。
@param to サマリを出力するオブジェクトを指定します。to には << メソッドが定義されいる必要があります。
@param width サマリの幅を整数で指定します。
@param max サマリの最大幅を整数で指定します。
@param indent サマリ......tparse"
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, --update\n", " -h, --help\n"]
opts.summarize(["description\n"], 10, 8, " ")
# => ["description\n", " -i\n",......" --init\n", " -u\n", " --update\n", " -h\n", " --help\n"]
//}...