300件ヒット
[1-100件を表示]
(0.043秒)
種類
- インスタンスメソッド (192)
- 特異メソッド (72)
- モジュール関数 (24)
- ライブラリ (12)
ライブラリ
-
irb
/ context (24) - json (120)
- optparse (72)
- psych (24)
-
rexml
/ document (48)
クラス
-
IRB
:: Context (24) -
JSON
:: State (96) - OptionParser (72)
-
Psych
:: Emitter (24) -
REXML
:: Declaration (12) -
REXML
:: Formatters :: Pretty (12) -
REXML
:: Formatters :: Transitive (12) -
REXML
:: NotationDecl (12)
モジュール
- JSON (24)
キーワード
-
auto
_ indent _ mode (12) -
auto
_ indent _ mode= (12) - configure (12)
-
from
_ state (12) - generate (12)
- indent= (12)
- indentation (12)
- indentation= (12)
- irb (12)
- merge (12)
- new (60)
- summarize (24)
-
summary
_ indent (12) -
summary
_ indent= (12) -
to
_ h (12) -
to
_ hash (12) - unparse (12)
- write (24)
検索結果
先頭5件
-
JSON
:: State # indent -> String (21113.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\"}"
//}... -
Psych
:: Emitter # indentation -> Integer (12200.0) -
インデントのレベルを返します。
...インデントのレベルを返します。
@see Psych::Emitter#indentation=... -
Psych
:: Emitter # indentation=(level) (12200.0) -
インデントのレベルを指定します。
...インデントのレベルを指定します。
1 から 9 までの整数で指定します。
@param level インデントレベル
@see Psych::Emitter#indentation... -
OptionParser
# summary _ indent=(indent) (9244.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 # configure(options = {}) -> self (9224.0) -
与えられたハッシュで自身を設定します。
...ーについては JSON::State.new を参照してください。
@param options このオブジェクトの設定をするためのハッシュを指定します。
//emlist[例][ruby]{
require "json"
json_state = JSON::State.new(indent: "\t")
json_state.indent # => "\t"
JSON.generate({key1: "va......lue1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"
json_state.configure(indent: " ")
json_state.indent # => " "
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{ \"key1\":\"value1\", \"key2\":\"value2\"}"
//}
@see JSON::State.new... -
OptionParser
# summary _ indent -> String (9137.0) -
サマリを表示する時のインデントを文字列で返します。
...= 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... -
JSON
:: State # indent=(string) (9119.0) -
インデントに使用する文字列をセットします。
...uby]{
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)
# => "{... -
IRB
:: Context # auto _ indent _ mode -> bool (9107.0) -
入力が次の行に継続した時に自動で字下げを行うかどうかを返します。
...入力が次の行に継続した時に自動で字下げを行うかどうかを返します。
デフォルト値は false です。
@return 自動で字下げを行う場合は true を返します。行わない場合は false
を返します。
@see IRB::Context#auto_indent_mode=... -
IRB
:: Context # auto _ indent _ mode=(val) (9107.0) -
入力が次の行に継続した時に自動で字下げを行うかどうかを val に設定します。
...します。
@param val true を指定した場合、自動で字下げを行います。false を指定し
た場合は自動で字下げを行いません。
IRB::Context#prompt_mode の変更に影響を受ける事に注意してください。
@see IRB::Context#auto_indent_mode...