360件ヒット
[1-100件を表示]
(0.140秒)
別のキーワード
ライブラリ
- ビルトイン (36)
- optparse (192)
- prettyprint (72)
- psych (36)
-
rexml
/ document (12)
クラス
- OptionParser (192)
- PrettyPrint (72)
-
Psych
:: Emitter (12) -
Psych
:: Nodes :: Node (24) -
RDoc
:: Options (12) -
REXML
:: Formatters :: Pretty (12) - String (36)
キーワード
- breakable (24)
- center (12)
- group (12)
-
line
_ width (12) - ljust (12)
- maxwidth (12)
- on (144)
- rjust (12)
- summarize (24)
-
summary
_ width (12) -
summary
_ width= (12) -
tab
_ width (12) - text (24)
-
to
_ yaml (12) - yaml (12)
検索結果
先頭5件
-
REXML
:: Formatters :: Pretty # width -> Integer (21208.0) -
出力のページ幅を返します。
...出力のページ幅を返します。
デフォルトは80です。
@see REXML::Formatters::Pretty#width=... -
PrettyPrint
# maxwidth -> Integer (12201.0) -
自身の幅を返します。
自身の幅を返します。 -
PrettyPrint
# group(indent = 0 , open _ obj = & # 39;& # 39; , close _ obj = & # 39;& # 39; , open _ width = open _ obj . length , close _ width = close _ obj . length) { . . . } -> () (9427.0) -
与えられたブロックを実行します。 ブロック内で自身に追加される文字列やオブジェクトは、1行にまとめて表示しても よい同じグループに属すると仮定されます。
...に属すると仮定されます。
もう少し詳しく説明します。pretty printing アルゴリズムはインデントと改行を、
ツリー構造を作ることによって決定します。そして、group メソッドは子ノードの作成と
子ノードのインデントの深......。
@param indent グループのインデントの深さを指定します。
@param open_obj 指定された場合、self.text(open_obj, open_width) がブロックが
実行される前に呼ばれます。開き括弧などを出力するのに使用されます。
@param clos......場合、self.text(close_obj, close_width) がブロックが
実行された後に呼ばれます。閉じ括弧などを出力するのに使用されます。
@param open_width open_obj のカラムを指定します。
@param close_width close_obj のカラムを指定しま... -
OptionParser
# summary _ width=(width) (9263.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.summa......rize
# => [" -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 (9256.0) -
サマリを表示するときの幅を整数で返します。
..."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
opts.summary_width......# =>8
opts.summarize
# => [" -i\n", " --init\n", " -u\n", " --update\n", " -h\n", " --help\n"]
//}... -
RDoc
:: Options # tab _ width -> Integer (9234.0) -
コマンドライン引数の --tab-width オプションで指定した数値を返します。
...コマンドライン引数の --tab-width オプションで指定した数値を返します。... -
Psych
:: Emitter # line _ width -> Integer (9208.0) -
「好ましい」行幅を返します。
...「好ましい」行幅を返します。
@see Psych::Emitter#line_width=... -
PrettyPrint
# breakable(sep , width = sep . length) -> () (6330.0) -
「必要ならここで改行出来る」ということを自身に通知します。 もしその位置で改行されなければ、width カラムのテキスト sep が出力の際にそこに挿入されます。
...置で改行されなければ、width カラムのテキスト sep が出力の際にそこに挿入されます。
@param sep 改行が起きなかった場合に挿入されるテキストを文字列で指定します。
@param width テキスト sep は width カラムであると仮定され......ます。指定されなければ、
sep.length が利用されます。例えば sep が多バイト文字の際に指定する必要があるかも知れません。... -
PrettyPrint
# breakable(sep = & # 39; & # 39;) -> () (6230.0) -
「必要ならここで改行出来る」ということを自身に通知します。 もしその位置で改行されなければ、width カラムのテキスト sep が出力の際にそこに挿入されます。
...置で改行されなければ、width カラムのテキスト sep が出力の際にそこに挿入されます。
@param sep 改行が起きなかった場合に挿入されるテキストを文字列で指定します。
@param width テキスト sep は width カラムであると仮定され......ます。指定されなければ、
sep.length が利用されます。例えば sep が多バイト文字の際に指定する必要があるかも知れません。...