252件ヒット
[1-100件を表示]
(0.037秒)
種類
- インスタンスメソッド (132)
- 特異メソッド (60)
- モジュール関数 (24)
- ライブラリ (24)
- 文書 (12)
ライブラリ
- json (108)
- optparse (72)
-
rexml
/ document (36)
クラス
-
JSON
:: State (84) - OptionParser (72)
-
REXML
:: DocType (12) -
REXML
:: Formatters :: Pretty (12) -
REXML
:: Formatters :: Transitive (12)
モジュール
- JSON (24)
キーワード
- Ruby用語集 (12)
- configure (12)
- generate (12)
- indent= (12)
- irb (12)
- merge (12)
- prettyprint (12)
- summarize (24)
-
summary
_ indent (12) -
summary
_ indent= (12) -
to
_ h (12) -
to
_ hash (12) - unparse (12)
- write (12)
検索結果
先頭5件
- OptionParser
. new(banner = nil , width = 32 , indent = & # 39; & # 39; * 4) -> OptionParser - OptionParser
. new(banner = nil , width = 32 , indent = & # 39; & # 39; * 4) {|opt| . . . } -> OptionParser - REXML
:: Formatters :: Pretty . new(indentation=2 , ie _ hack=false) -> REXML :: Formatter :: Pretty - REXML
:: Formatters :: Transitive . new(indentation=2 , ie _ hack=false) -> REXML :: Formatter :: Transitive - JSON
:: State . new(options = {}) -> JSON :: State
-
OptionParser
. new(banner = nil , width = 32 , indent = & # 39; & # 39; * 4) -> OptionParser (18216.0) -
OptionParser オブジェクトを生成して返します。
...してブロックを評
価します。つまり、以下のような書き方が可能です。
//emlist[][ruby]{
require 'optparse'
OptionParser.new do |opt|
opt.on('-a') {|v| p v }
opt.on('-b') {|v| p v }
opt.parse!(ARGV)
end
//}
@param banner ヘルプ(サマリ)の最初の部分に......表示される、アプリケーションの説明などを文字列で与えます。
@param width サマリの幅を整数で与えます。
@param indent サマリのインデントを文字列で与えます。... -
OptionParser
. new(banner = nil , width = 32 , indent = & # 39; & # 39; * 4) {|opt| . . . } -> OptionParser (18216.0) -
OptionParser オブジェクトを生成して返します。
...してブロックを評
価します。つまり、以下のような書き方が可能です。
//emlist[][ruby]{
require 'optparse'
OptionParser.new do |opt|
opt.on('-a') {|v| p v }
opt.on('-b') {|v| p v }
opt.parse!(ARGV)
end
//}
@param banner ヘルプ(サマリ)の最初の部分に......表示される、アプリケーションの説明などを文字列で与えます。
@param width サマリの幅を整数で与えます。
@param indent サマリのインデントを文字列で与えます。... -
REXML
:: Formatters :: Pretty . new(indentation=2 , ie _ hack=false) -> REXML :: Formatter :: Pretty (18201.0) -
フォーマッタオブジェクトを生成して返します。
...します。
indentation でインデント幅を(空白の数で)指定します。
ie_hack に真を渡すと、空のタグを閉じる前で空白を挿入します。
これは特定のバージョンのIEのXMLパーサのバグを避けるための機能です。
@param indentation 出力... -
REXML
:: Formatters :: Transitive . new(indentation=2 , ie _ hack=false) -> REXML :: Formatter :: Transitive (18201.0) -
フォーマッタオブジェクトを生成して返します。
...整形します。
indentation でインデント幅を指定できます。
ie_hack に真を渡すと、空のタグを閉じる前で空白を挿入します。
これは特定のバージョンのIEのXMLパーサのバグを避けるための機能です。
@param indentation インデント... -
JSON
:: State . new(options = {}) -> JSON :: State (18149.0) -
自身を初期化します。
...身を初期化します。
@param options ハッシュを指定します。
指定可能なオプションは以下の通りです。
: :indent
インデントに使用する文字列を指定します。デフォルトは空文字列です。
: :space
JSON 形式の文字列のトー......te.new(indent: "\t")
json_state.class # => JSON::Ext::Generator::State
json_state.indent # => "\t"
//}
//emlist[例 JSON::State を指定][ruby]{
require "json"
json_state = JSON::State.new(indent: "\t")
copy = JSON::State.new(json_state)
copy.class # => JSON::Ext::Generator::State
copy.indent #... -
JSON
:: State # indent -> String (18119.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) (6232.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) (6125.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_s... -
OptionParser
# summary _ indent -> String (6125.0) -
サマリを表示する時のインデントを文字列で返します。
...tionParser.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 #...