299件ヒット
[1-100件を表示]
(0.042秒)
種類
- インスタンスメソッド (192)
- 特異メソッド (72)
- 文書 (23)
- モジュール関数 (12)
ライブラリ
- benchmark (12)
- optparse (48)
- prettyprint (120)
- psych (72)
-
rexml
/ document (24)
クラス
- OptionParser (48)
- PrettyPrint (120)
-
Psych
:: Emitter (24) -
Psych
:: Nodes :: Node (24) -
REXML
:: Formatters :: Pretty (24)
キーワード
-
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 3
. 1 . 0 (4) - benchmark (12)
- breakable (24)
- dump (24)
- format (12)
- group (12)
-
line
_ width (12) -
line
_ width= (12) - maxwidth (12)
- new (24)
-
ruby 1
. 8 . 4 feature (12) -
singleline
_ format (12) - summarize (24)
-
summary
_ width (12) -
summary
_ width= (12) - text (24)
-
to
_ yaml (12) - width= (12)
- yaml (12)
検索結果
先頭5件
-
REXML
:: Formatters :: Pretty # width -> Integer (21107.0) -
出力のページ幅を返します。
...出力のページ幅を返します。
デフォルトは80です。
@see REXML::Formatters::Pretty#width=... -
OptionParser
# summary _ width=(width) (12326.0) -
サマリを表示するときの幅を整数で指定します。
...ます。
@param width サマリを表示するときの幅を整数で指定します。
//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_width # => 32
opts.su......mmarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summary_width = 8 # => 8
opts.summary_width # => 8
opts.summarize
# => [" -i\n", " --init\n", " -u\n", " --update\n", " -h\n", " --help\n"]
//}... -
OptionParser
# summary _ width -> Integer (12219.0) -
サマリを表示するときの幅を整数で返します。
...例][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_width # => 32
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summary_width = 8
op......ts.summary_width # =>8
opts.summarize
# => [" -i\n", " --init\n", " -u\n", " --update\n", " -h\n", " --help\n"]
//}... -
Psych
:: Emitter # line _ width=(width) (9214.0) -
「好ましい」行幅を整数値で設定します。
...「好ましい」行幅を整数値で設定します。
@param width 好ましい行幅
@see Psych::Emitter#line_width... -
Psych
:: Emitter # line _ width -> Integer (9107.0) -
「好ましい」行幅を返します。
...「好ましい」行幅を返します。
@see Psych::Emitter#line_width=... -
REXML
:: Formatters :: Pretty # width=(w) (9107.0) -
出力のページ幅を設定します。
...出力のページ幅を設定します。
@param w ページ幅の設定値
@see REXML::Formatters::Pretty#width... -
PrettyPrint
# maxwidth -> Integer (9100.0) -
自身の幅を返します。
自身の幅を返します。 -
Psych
:: Nodes :: Node # to _ yaml(io=nil , options={}) -> String | IO (6106.0) -
AST を YAML ドキュメントに変換します。
...AST を YAML ドキュメントに変換します。
io に IO オブジェクトを指定した場合は、その
オブジェクトに変換後のドキュメントが書き込まれます。
この場合は io を返り値として返します。
io を省略した(nil を指定した)場合......のドキュメントを
文字列で返します。
Psych::Nodes::Stream 以外を変換しようとすると、AST として不正で
あるためエラーが発生します。
options には以下が指定できます。
: :version
YAML document に付加するバージョンを [major, mino......ion
インデントのレベルを 1 から 9 までの整数で指定します
: :canonical
出力の style が canonical であるかどうかを真偽値で指定します
: :line_width
「好ましい」行幅を整数値で指定します
@param io 書き込み先の IO
@param options... -
Psych
:: Nodes :: Node # yaml(io=nil , options={}) -> String | IO (6106.0) -
AST を YAML ドキュメントに変換します。
...AST を YAML ドキュメントに変換します。
io に IO オブジェクトを指定した場合は、その
オブジェクトに変換後のドキュメントが書き込まれます。
この場合は io を返り値として返します。
io を省略した(nil を指定した)場合......のドキュメントを
文字列で返します。
Psych::Nodes::Stream 以外を変換しようとすると、AST として不正で
あるためエラーが発生します。
options には以下が指定できます。
: :version
YAML document に付加するバージョンを [major, mino......ion
インデントのレベルを 1 から 9 までの整数で指定します
: :canonical
出力の style が canonical であるかどうかを真偽値で指定します
: :line_width
「好ましい」行幅を整数値で指定します
@param io 書き込み先の IO
@param options...