別のキーワード
種類
- 特異メソッド (36)
- インスタンスメソッド (36)
- ライブラリ (24)
- 文書 (12)
ライブラリ
- prettyprint (72)
クラス
- PrettyPrint (72)
キーワード
- group (12)
- new (24)
- pp (12)
- rdoc (12)
-
ruby 1
. 8 . 4 feature (12) -
singleline
_ format (12)
検索結果
先頭5件
- PrettyPrint
# text(obj , width = obj . length) -> () - PrettyPrint
# text(obj) -> () - pp
- PrettyPrint
# group(indent = 0 , open _ obj = & # 39;& # 39; , close _ obj = & # 39;& # 39; , open _ width = open _ obj . length , close _ width = close _ obj . length) { . . . } -> () - PrettyPrint
. new(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n") {|width| . . . } -> PrettyPrint
-
PrettyPrint
# text(obj , width = obj . length) -> () (18225.0) -
obj を width カラムのテキストとして自身に追加します。
...obj を width カラムのテキストとして自身に追加します。
@param obj 自身に追加するテキストを文字列で指定します。
@param width obj のカラムを指定します。指定されなかった場合、obj.length が利用されます。... -
PrettyPrint
# text(obj) -> () (18125.0) -
obj を width カラムのテキストとして自身に追加します。
...obj を width カラムのテキストとして自身に追加します。
@param obj 自身に追加するテキストを文字列で指定します。
@param width obj のカラムを指定します。指定されなかった場合、obj.length が利用されます。... -
pp (258.0)
-
オブジェクトなどを見やすく出力するためのライブラリです。
...l=0, @buf=[#<PrettyPrint::Text:0x81a0b30 @tail=2, @wi
dth=1, @text="[">, #<PrettyPrint::Group:0x81a0a68 @group=2, @tail=1, @buf=[#<Pre
ttyPrint::Text:0x81a09f0 @tail=1, @width=1, @text="1">], @singleline_width=1>, #
<PrettyPrint::Text:0x81a0a7c @tail=0, @width=1, @text=",">, #<PrettyPrint::Bre......tail=2, @sep=" ", @width=1>, #<PrettyPrint::Group:0x81a09c8 @group=2, @tail=1, @
buf=[#<PrettyPrint::Text:0x81a0950 @tail=1, @width=1, @text="2">], @singleline_w
idth=1>, #<PrettyPrint::Text:0x81a0af4 @tail=0, @width=1, @text="]">], @singleli
ne_width=6>], @singleline_width=6>, @sharing_detec......t::Text:0x40d0598 @tail=2, @text="[", @width=1>,
#<PrettyPrint::Group:0x40d0534
@buf=[#<PrettyPrint::Text:0x40d04f8 @tail=1, @text="1", @width=1>],
@group=2,
@singleline_width=1,
@tail=1>,
#<PrettyPrint::Text:0x40d053e @tail=0, @text=",... -
PrettyPrint
# group(indent = 0 , open _ obj = & # 39;& # 39; , close _ obj = & # 39;& # 39; , open _ width = open _ obj . length , close _ width = close _ obj . length) { . . . } -> () (238.0) -
与えられたブロックを実行します。 ブロック内で自身に追加される文字列やオブジェクトは、1行にまとめて表示しても よい同じグループに属すると仮定されます。
...bj 指定された場合、self.text(open_obj, open_width) がブロックが
実行される前に呼ばれます。開き括弧などを出力するのに使用されます。
@param close_obj 指定された場合、self.text(close_obj, close_width) がブロックが......実行された後に呼ばれます。閉じ括弧などを出力するのに使用されます。
@param open_width open_obj のカラムを指定します。
@param close_width close_obj のカラムを指定します。... -
PrettyPrint
. new(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n") {|width| . . . } -> PrettyPrint (229.0) -
pretty printing のためのバッファを生成します。 output は出力先です。output は << メソッドを持っていなければなりません。 << メソッドには * PrettyPrint#text の第1引数 obj * PrettyPrint#breakable の第1引数 sep * PrettyPrint.new の第3引数 newline * PrettyPrint.new に与えたブロックを評価した結果 のどれかひとつが引数として与えられます。
...ます。
output は出力先です。output は << メソッドを持っていなければなりません。
<< メソッドには
* PrettyPrint#text の第1引数 obj
* PrettyPrint#breakable の第1引数 sep
* PrettyPrint.new の第3引数 newline
* PrettyPrint.new に与えたブロックを......指定されない場合は、空白を生成するために {|width| ' ' * width} が使われます。
@param output 出力先を指定します。output は << メソッドを持っていなければなりません。
@param maxwidth 行の最大幅を指定します。ただし、改行でき......ないものが渡された場合は、実際の出力幅は maxwidth を越えることがあります。
@param newline 改行に使われます。... -
PrettyPrint
. new(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n") -> PrettyPrint (129.0) -
pretty printing のためのバッファを生成します。 output は出力先です。output は << メソッドを持っていなければなりません。 << メソッドには * PrettyPrint#text の第1引数 obj * PrettyPrint#breakable の第1引数 sep * PrettyPrint.new の第3引数 newline * PrettyPrint.new に与えたブロックを評価した結果 のどれかひとつが引数として与えられます。
...ます。
output は出力先です。output は << メソッドを持っていなければなりません。
<< メソッドには
* PrettyPrint#text の第1引数 obj
* PrettyPrint#breakable の第1引数 sep
* PrettyPrint.new の第3引数 newline
* PrettyPrint.new に与えたブロックを......指定されない場合は、空白を生成するために {|width| ' ' * width} が使われます。
@param output 出力先を指定します。output は << メソッドを持っていなければなりません。
@param maxwidth 行の最大幅を指定します。ただし、改行でき......ないものが渡された場合は、実際の出力幅は maxwidth を越えることがあります。
@param newline 改行に使われます。... -
rdoc (108.0)
-
RDoc は Ruby のドキュメント生成を行うためのライブラリです。rdoc という ドキュメント生成のためのコマンドも含んでいます。
...#' は取り除かれま
す。
: --style stylesheet url
(RDoc のではなく)外部スタイルシートの URL を指定する。
: --tab-width n
タブの幅を指定する(デフォルトは 8)。
: --template name
出力生成時に使うテンプレートを指定する(デフ......クトリの rdoc/generators/xxxx_generator が
使われる。 (xxxx はフォーマッタによって異なる)。
: --title text
出力のタイトルを text に指定します。
: --visibility visibility
出力するメソッドの可視性を public、protected、private のいず......ップもできます。
* イタリック体 italic: _word_ もしくは <em>text</em>
* ボールド体 bold: *word* もしくは <b>text</b>
* タイプライター体 typewriter: +word+ もしくは <tt>text</tt>
それぞれ2つ形式がありますが、word の方は単語を囲うこ... -
PrettyPrint
. singleline _ format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object (106.0) -
PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 PrettyPrint.format に似ていますが、改行しません。
...width, newline と genspace は無視されます。ブロック中の breakable の実行は、
改行せずに text の実行であるかのように扱います。
@param output 出力先を指定します。output は << メソッドを持っていなければなりません。
@param maxwidth... -
ruby 1
. 8 . 4 feature (24.0) -
ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。
...例はすべて以下のエラーになります。
# %xx$ に指定できる最大値は 2147483647 です。
# -e:1:in `printf': width too big (ArgumentError)
: Hash [bug]
#Wed Nov 23 03:40:49 2005 Guy Decoux <ts@moulon.inra.fr>
#
# * re.c (KR_REHASH): should cast to unsi......#
# * ext/tk/lib/tk.rb: add Tk.pkgconfig_list and Tk.pkgconfig_get
# [Tk8.5 feature].
#
# * ext/tk/lib/tk/text.rb: supports new indices modifiers on a Text
# widget [Tk8.5 feature].
#
Tcl/Tk8.5a3 への対応のため,Tk.pkgconfig_list および Tk.pkgconfig_get......istbox.rb, ext/tk/lib/tk/menu.rb,
# ext/tk/lib/tk/radiobutton.rb, ext/tk/lib/tk/scale.rb,
# ext/tk/lib/tk/spinbox.rb, ext/tk/lib/tk/text.rb,
# ext/tk/lib/tk/toplevel.rb: improve conversion of option values.
#
# * ext/tk/lib/tkextlib/*: ditto.
#
ウィジェット...