67件ヒット
[1-67件を表示]
(0.055秒)
種類
- インスタンスメソッド (34)
- ライブラリ (22)
- 文書 (11)
ライブラリ
- openssl (11)
- pp (11)
- prettyprint (12)
クラス
- Object (11)
-
OpenSSL
:: PKey :: EC :: Group (11) - PrettyPrint (12)
キーワード
- first? (1)
- pp (11)
-
pretty
_ print (11) - prettyprint (11)
-
ruby 1
. 8 . 4 feature (11) -
to
_ text (11)
検索結果
先頭5件
-
PrettyPrint
# group(indent = 0 , open _ obj = & # 39;& # 39; , close _ obj = & # 39;& # 39; , open _ width = open _ obj . length , close _ width = close _ obj . length) { . . . } -> () (18219.0) -
与えられたブロックを実行します。 ブロック内で自身に追加される文字列やオブジェクトは、1行にまとめて表示しても よい同じグループに属すると仮定されます。
...す。pretty printing アルゴリズムはインデントと改行を、
ツリー構造を作ることによって決定します。そして、group メソッドは子ノードの作成と
子ノードのインデントの深さの決定を担当します。
同じノード内で呼ばれた bre......param open_obj 指定された場合、self.text(open_obj, open_width) がブロックが
実行される前に呼ばれます。開き括弧などを出力するのに使用されます。
@param close_obj 指定された場合、self.text(close_obj, close_width) がブロックが... -
OpenSSL
:: PKey :: EC :: Group # to _ text -> String (9207.0) -
自身を人間に可読な形式の文字列に変換します。
...自身を人間に可読な形式の文字列に変換します。
@raise OpenSSL::PKey::EC::Group::Error 変換に失敗した場合に発生します。... -
ruby 1
. 8 . 4 feature (1476.0) -
ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。
...されたクラス/メソッドなど
* [compat]: 変更されたクラス/メソッドなど
* 互換性のある変更
* only backward-compatibility
* 影響の範囲が小さいと思われる変更もこちら
* [change]: 変更されたクラス/メソッドなど(互換......#
# * 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......rwride chown(2) and fchown(2) on BeOS. (these functions
# should not change user/group id if -1 is passed as corresponding
# argument, and this causes error in test/fileutils too)
# [ruby-dev:27672]
#
# * file.c (rb_file_s_link): checks HAVE_LINK.
BeOS でのいく... -
pp (282.0)
-
オブジェクトなどを見やすく出力するためのライブラリです。
...etty-print されてない出力:
#<PP:0x81a0d10 @stack=[], @genspace=#<Proc:0x81a0cc0>, @nest=[0], @newline="\n",
@buf=#<PrettyPrint::Group:0x81a0c98 @group=0, @tail=0, @buf=[#<PrettyPrint::Gro
up:0x81a0ba8 @group=1, @tail=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::Break
able:0x81a0a2c @group=2, @gensace=#<Proc:0x81a0cc0>, @newline="\n"......rint::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_detection=false>
pp による pretty-print... -
Object
# pretty _ print(pp) -> () (118.0) -
PP.pp や Kernel.#pp がオブジェクトの内容を出力するときに 呼ばれるメソッドです。PP オブジェクト pp を引数として呼ばれます。
...ブジェクトです。
//emlist[][ruby]{
require 'pp'
class Array
def pretty_print(q)
q.group(1, '[', ']') {
q.seplist(self) {|v|
q.pp v
}
}
end
end
//}
@see Object#pretty_print_cycle, Object#inspect, PrettyPrint#text, PrettyPrint#group, PrettyPrint#breakable......@param pp PP オブジェクトです。
//emlist[][ruby]{
class Array
def pretty_print(q)
q.group(1, '[', ']') {
q.seplist(self) {|v|
q.pp v
}
}
end
end
//}
@see Object#pretty_print_cycle, Object#inspect, PrettyPrint#text, PrettyPrint#group, PrettyPrint#breakable... -
PrettyPrint
# first? -> bool (112.0) -
このメソッドは obsolete です。
...の呼び出しかどうかを判定する
述語です。これはカンマで区切られた値を整形するのに有用です。
pp.group(1, '[', ']') {
xxx.each {|yyy|
unless pp.first?
pp.text ','
pp.breakable
end
... pretty printing yyy ...
}
}... -
prettyprint (60.0)
-
pretty printing アルゴリズムのためのライブラリです。
...ァを生成します。このとき、バッファの幅と改行文字を指定します。
* PrettyPrint#text を使って、文字列を適宜 挿入します。
* PrettyPrint#group を使って子ノードをつくります。同時に子ノードのインデントの深さも決めます。......p2.text(s)
p2.group(p2.indent + s.size + 1) do
p2.breakable
p2.text('a')
p2.breakable
p2.text('b')
p2.breakable
p2.text('c')
end
p2.flush
puts p2.output
#=>
# hello
# a
# b
# c
//}
=== References
Christian Lindig, Strictly Pretty, March 2000,
http://www.st.cs.uni-sb.d......e/~lindig/papers/pretty/strictly-pretty.html
Philip Wadler, A prettier printer, March 1998,
http://homepages.inf.ed.ac.uk/wadler/topics/language-design.html#prettier...