種類
ライブラリ
- ビルトイン (246)
- abbrev (12)
-
cgi
/ html (36) - coverage (8)
- csv (48)
- e2mmap (96)
- etc (24)
- fcntl (12)
-
irb
/ context (12) - json (48)
- logger (9)
- matrix (12)
-
minitest
/ unit (2) - mkmf (60)
-
mutex
_ m (12) -
net
/ ftp (34) -
net
/ http (134) -
net
/ imap (12) -
net
/ smtp (12) -
net
/ telnet (4) - openssl (60)
- pathname (12)
- pp (100)
- prettyprint (25)
- prime (108)
- psych (180)
- rake (264)
- readline (24)
-
rexml
/ sax2listener (24) - ripper (204)
-
ripper
/ filter (84) -
ripper
/ lexer (84) -
ripper
/ sexp (24) -
rubygems
/ exceptions (24) -
rubygems
/ installer (12) -
rubygems
/ package / tar _ input (12) -
rubygems
/ requirement (48) - shell (6)
-
shell
/ builtin-command (36) -
shell
/ command-processor (6) -
shell
/ error (6) -
shell
/ filter (6) - socket (876)
-
webrick
/ httpproxy (12) -
webrick
/ httpstatus (48) -
webrick
/ httputils (12)
クラス
- Addrinfo (12)
- Array (16)
- CSV (48)
- Coverage (8)
-
Gem
:: Installer (12) -
Gem
:: Package :: TarInput (12) -
Gem
:: Requirement (48) -
IRB
:: Context (12) - Integer (36)
-
JSON
:: State (24) -
Logger
:: Application (8) - Matrix (12)
-
MiniTest
:: Unit :: TestCase (1) - Module (12)
-
Net
:: FTP :: MLSxEntry (10) -
Net
:: HTTP (12) -
Net
:: IMAP (12) -
Net
:: Telnet (4) - Object (72)
-
OpenSSL
:: BN (24) - PP (36)
- Pathname (12)
- PrettyPrint (25)
- Prime (48)
-
Prime
:: PseudoPrimeGenerator (36) -
Psych
:: Handler (24) -
Psych
:: Nodes :: Mapping (144) -
Rake
:: Application (144) -
Rake
:: InvocationChain (24) -
Rake
:: InvocationChain :: EmptyInvocationChain (12) -
Rake
:: Task (36) - Ripper (276)
-
Ripper
:: Filter (84) -
Ripper
:: Lexer (36) -
RubyVM
:: InstructionSequence (24) - Shell (6)
-
Shell
:: AppendFile (12) -
Shell
:: AppendIO (12) -
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Socket (432)
-
WEBrick
:: HTTPProxyServer (12) -
WEBrick
:: HTTPUtils :: FormData (12)
モジュール
- Abbrev (12)
-
CGI
:: HtmlExtension (24) -
CGI
:: TagMaker (12) - Enumerable (36)
- Etc (24)
- Exception2MessageMapper (78)
- Fcntl (12)
-
File
:: Constants (12) - Kernel (84)
-
MiniTest
:: Assertions (1) -
Mutex
_ m (12) -
OpenSSL
:: ASN1 (12) -
OpenSSL
:: X509 (12) - Process (36)
-
REXML
:: SAX2Listener (24) - Rake (24)
-
Rake
:: TaskManager (12) - Readline (24)
-
RubyVM
:: AbstractSyntaxTree (30) -
Socket
:: Constants (432) -
WEBrick
:: HTTPStatus (24)
キーワード
- << (12)
-
AF
_ APPLETALK (24) -
AF
_ PPP (24) -
AI
_ V4MAPPED (24) -
AI
_ V4MAPPED _ CFG (24) - ANY (12)
- APPEND (12)
- AppendFile (6)
- AppendIO (6)
- Application (13)
- BLOCK (12)
-
CLOCK
_ MONOTONIC _ RAW _ APPROX (12) -
CLOCK
_ UPTIME _ RAW _ APPROX (12) - CantApplyMethod (6)
-
DEFAULT
_ RAKEFILES (12) - E2MM (6)
- EAFNOSUPPORT (12)
- EOPNOTSUPP (12)
- EPFNOSUPPORT (12)
- EPROTONOSUPPORT (12)
- ESOCKTNOSUPPORT (12)
- EVENTS (12)
- ErrNotRegisteredException (6)
- Exception2MessageMapper (6)
- FLOW (12)
- FTPPermError (12)
- FTPProtoError (12)
- Fail (12)
- HTTPPartialContent (12)
- HTTPPayloadTooLarge (7)
- HTTPPaymentRequired (12)
- HTTPPermanentRedirect (11)
- HTTPPreconditionFailed (12)
- HTTPPreconditionRequired (12)
- HTTPProcessing (8)
- HTTPProxyAuthenticationRequired (12)
- HTTPUnsupportedMediaType (12)
- HTTPVersionNotSupported (24)
-
IFF
_ PPROMISC (12) -
IFF
_ SUPP _ NOFCS (24) -
IPPORT
_ RESERVED (24) -
IPPORT
_ USERRESERVED (24) -
IPPROTO
_ AH (24) -
IPPROTO
_ BIP (24) -
IPPROTO
_ DSTOPTS (24) -
IPPROTO
_ EGP (24) -
IPPROTO
_ EON (24) -
IPPROTO
_ ESP (24) -
IPPROTO
_ FRAGMENT (24) -
IPPROTO
_ GGP (24) -
IPPROTO
_ HELLO (24) -
IPPROTO
_ HOPOPTS (24) -
IPPROTO
_ ICMP (24) -
IPPROTO
_ ICMPV6 (24) -
IPPROTO
_ IDP (24) -
IPPROTO
_ IGMP (24) -
IPPROTO
_ IP (24) -
IPPROTO
_ IPV6 (24) -
IPPROTO
_ MAX (24) -
IPPROTO
_ ND (24) -
IPPROTO
_ NONE (24) -
IPPROTO
_ PUP (24) -
IPPROTO
_ RAW (24) -
IPPROTO
_ ROUTING (24) -
IPPROTO
_ TCP (24) -
IPPROTO
_ TP (24) -
IPPROTO
_ UDP (24) -
IPPROTO
_ XTP (24) - ISUPPER (12)
- Mapping (12)
- MissingUnicodeSupport (12)
-
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) -
O
_ APPEND (12) - OperationNotSupportedError (12)
-
PARSER
_ EVENTS (12) -
PARSER
_ EVENT _ TABLE (12) -
PF
_ APPLETALK (24) -
PF
_ PPP (24) - Proppatch (12)
-
RC
_ HTTP _ VERSION _ NOT _ SUPPORTED (12) -
RC
_ UNSUPPORTED _ MEDIA _ TYPE (12) - Raise (12)
- RemoteInstallationSkipped (12)
-
SCANNER
_ EVENTS (12) -
SCANNER
_ EVENT _ TABLE (12) -
SCRIPT
_ LINES _ _ (12) -
SC
_ MAPPED _ FILES (12) - SMTPUnsupportedCommand (12)
-
SUPPORTS
_ INFO _ SIGNAL (1) - UnsupportedMediaType (12)
-
V
_ ERR _ APPLICATION _ VERIFICATION (12) - Version (12)
- abbrev (12)
-
add
_ loader (12) - anchor (12)
- anchor= (12)
-
app
_ script _ text (12) - append (74)
-
append
_ data (12) -
append
_ features (24) - appendable? (10)
- application (24)
- application= (24)
- appname (1)
- bind (6)
-
block
_ append (12) - chunk (12)
- column (24)
-
compile
_ error (12) -
compile
_ option (12) -
completion
_ append _ character (12) -
completion
_ append _ character= (12) -
cpp
_ command (12) - create (12)
- debug (12)
- decode (12)
-
def
_ exception (12) - default (12)
-
e
_ option _ supplied (12) - each (48)
-
each
_ prime (24) -
egrep
_ cpp (24) - encoding (12)
-
end
_ mapping (12) -
end
_ prefix _ mapping (12) -
end
_ seen? (12) - entries (12)
-
extend
_ object (6) - fail (6)
- filename (24)
- first? (1)
- form (24)
- format (12)
- getaddrinfo (12)
- implicit (12)
- implicit= (12)
- init (12)
- input= (12)
-
inspect
_ mode= (12) -
ipv6
_ v4mapped? (12) - irb (12)
- jj (12)
- level= (1)
- lex (24)
- lineno (24)
-
list
_ append (12) -
literal
_ append (12) -
load
_ rakefile (12) -
local
_ append (12) - log (2)
- log= (1)
- login (4)
-
mu
_ pp (1) -
nOE
_ element _ def (12) - name (12)
- new (97)
- of (10)
-
on
_ XXX (12) -
on
_ default (12) -
original
_ dir (12) - parse (82)
-
parse
_ file (10) - ppid (12)
-
pretty
_ inspect (12) -
pretty
_ print (36) -
pretty
_ print _ cycle (12) -
pretty
_ print _ inspect (12) -
pretty
_ print _ instance _ variables (12) - proppatch (12)
- push (8)
- rakefile (12)
-
rb
_ mod _ append _ features (12) -
rb
_ parser _ append _ print (12) - read (12)
- readlines (12)
-
rexml
/ document (12) -
rexml
/ parsers / ultralightparser (12) -
ruby 1
. 8 . 5 feature (12) - run (12)
-
set
_ log (1) - sexp (12)
-
sexp
_ raw (12) -
sharing
_ detection (12) -
sharing
_ detection= (12) -
singleline
_ format (12) -
singleline
_ pp (12) - slice (12)
-
slice
_ before (24) - start (9)
-
start
_ mapping (12) -
start
_ prefix _ mapping (12) - style (12)
- style= (12)
- tag (12)
- tag= (12)
- tasks (12)
-
to
_ a (12) -
to
_ bn (12) -
to
_ h (12) -
to
_ hash (12) -
token
_ match (12) - tokenize (24)
-
top
_ level (12) -
top
_ level _ tasks (12) -
try
_ cpp (24) - tsort (12)
-
tty
_ output= (12) - uname (12)
-
upper
_ bound (12) -
upper
_ bound= (12) -
upper
_ triangular? (12) - warn (12)
- warning (12)
-
zipped
_ stream (12)
検索結果
先頭5件
-
pp (38144.0)
-
オブジェクトなどを見やすく出力するためのライブラリです。
...このライブラリを require すると Kernel.#pp が定義されます。
Kernel.#p のかわりに Kernel.#pp を使うことにより、
適切にインデントと改行された分かりやすい出力を得ることが出来ます。
pp ライブラリは、ユーザがあたらしく定......ので、Kernel.#pp を使う上で余計な作業をする
必要はありません。
=== どちらが読みやすいでしょうか?
p による pretty-print されてない出力:
#<PP:0x81a0d10 @stack=[], @genspace=#<Proc:0x81a0cc0>, @nest=[0], @newline="\n",
@buf=#<PrettyPrint::Group:0x......uf=[#<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:0x81a0a......などを見やすく出力するためのライブラリです。
pp ライブラリは、ユーザがあたらしく定義したクラスに対しても見やすい表示を
するように作られていますので、Kernel.#pp を使う上で余計な作業をする
必要はありません。......か?
p による pretty-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, @......yPrint::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", @indent=1... -
PP
. singleline _ pp(obj , out= $ >) -> object (29201.0) -
指定されたオブジェクト obj を出力先 out に出力します。 ただし、インデントも改行もしません。 出力先 out を返します。
指定されたオブジェクト obj を出力先 out に出力します。
ただし、インデントも改行もしません。
出力先 out を返します。
@param obj 表示したいオブジェクトを指定します。
@param out 出力先を指定します。<< メソッドが定義されている必要があります。 -
Kernel
. # pp(*obj) -> object (29157.0) -
指定されたオブジェクト obj を標準出力に見やすい形式(プリティプリント)で出力します。 obj それぞれを引数として PP.pp を呼ぶことと同等です。
... PP.pp を呼ぶことと同等です。
@param obj 表示したいオブジェクトを指定します。
//emlist[例][ruby]{
require 'pp'
b = [1, 2, 3] * 4
a = [b, b]
a << a
pp a
#=> [[1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3],
# [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3],
# [...]]
//}
@see PP.pp... -
NEWS for Ruby 3
. 1 . 0 (26048.0) -
NEWS for Ruby 3.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...NEWS for Ruby 3.1.0
このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
それぞれのエントリーは参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリス......名にできるようになりました。 11256
//emlist{
def foo(&)
bar(&)
end
//}
* ピン演算子に式を書けるようになりました。 17411
//emlist{
Prime.each_cons(2).lazy.find_all{_1 in [n, ^(n + 2)]}.take(3).to_a
#=> [[3, 5], [5, 7], [11, 13]]
//}
* ピン演算子がイ......find 0.1.1
* io-console 0.5.10
* io-wait 0.2.1
* ipaddr 1.2.3
* irb 1.4.1
* json 2.6.1
* logger 1.5.0
* net-http 0.2.0
* net-protocol 0.1.2
* nkf 0.1.1
* open-uri 0.2.0
* openssl 3.0.0
* optparse 0.2.0
* ostruct 0.5.2
* pathname 0.2.0
* pp... -
NEWS for Ruby 2
. 5 . 0 (26006.0) -
NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...NEWS for Ruby 2.5.0
このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
それぞれのエントリーは参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリス......トは ChangeLog ファイルか bugs.ruby-lang.org の issue を参照してください。
== 2.4.0 以降の変更
=== 言語仕様の変更
* トップレベルの定数参照を削除しました 11547
* do/end ブロック内部で rescue/else/ensure を書けるようになりまし......* 文字列の式展開内部の暗黙の to_s 呼び出しにも refinements が影響するようになりました 13812
=== 組み込みクラスの更新
* Array
* Array#append を追加 12746
* Array#prepend を追加 12746
* Data
* 非推奨になりました。C拡張... -
NEWS for Ruby 3
. 0 . 0 (26006.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...NEWS for Ruby 3.0.0
このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
それぞれのエントリーは参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリス......ord arguments are now separated from positional arguments.
Code that resulted in deprecation warnings in Ruby 2.7 will now
result in ArgumentError or different behavior. 14183
* Procs accepting a single rest argument and keywords are no longer
subject to autosplatting. This now matche......pting a single rest argument and no keywords.
16166
//emlist[][ruby]{
pr = proc{|*a, **kw| [a, kw]}
pr.call([1])
# 2.7 => [[1], {}]
# 3.0 => [[[1]], {}]
pr.call([1, {a: 1}])
# 2.7 => [[1], {:a=>1}] # and deprecation warning
# 3.0 => a=>1}, {}]
//}
* Arguments forwarding (`...`) now support... -
PP
. sharing _ detection -> bool (23156.0) -
共有検出フラグを表すアクセサです。 デフォルトは false です。true である場合、 PP.pp は一度出力したオブジェクトを再び出力する時 Object#pretty_print_cycle を使います。
...true である場合、
PP.pp は一度出力したオブジェクトを再び出力する時
Object#pretty_print_cycle を使います。
@param boolean 共有検出フラグを true か false で指定します。
//emlist[][ruby]{
require 'pp'
b = [1, 2, 3]
a = [b, b]
pp a......#=> [[1, 2, 3], [1, 2, 3]]
PP.sharing_detection = true
pp a #=> [[1, 2, 3], [...]]
//}... -
PP
. sharing _ detection=(boolean) (23156.0) -
共有検出フラグを表すアクセサです。 デフォルトは false です。true である場合、 PP.pp は一度出力したオブジェクトを再び出力する時 Object#pretty_print_cycle を使います。
...true である場合、
PP.pp は一度出力したオブジェクトを再び出力する時
Object#pretty_print_cycle を使います。
@param boolean 共有検出フラグを true か false で指定します。
//emlist[][ruby]{
require 'pp'
b = [1, 2, 3]
a = [b, b]
pp a......#=> [[1, 2, 3], [1, 2, 3]]
PP.sharing_detection = true
pp a #=> [[1, 2, 3], [...]]
//}... -
PP
. sharing _ detection -> bool (23150.0) -
共有検出フラグを表すアクセサです。 デフォルトは false です。true である場合、 PP.pp は一度出力したオブジェクトを再び出力する時 Object#pretty_print_cycle を使います。
...
PP.pp は一度出力したオブジェクトを再び出力する時
Object#pretty_print_cycle を使います。
@param boolean 共有検出フラグを true か false で指定します。
//emlist[][ruby]{
b = [1, 2, 3]
a = [b, b]
pp a #=> [[1, 2, 3], [1, 2, 3]]
PP.sh......aring_detection = true
pp a #=> [[1, 2, 3], [...]]
//}... -
PP
. sharing _ detection=(boolean) (23150.0) -
共有検出フラグを表すアクセサです。 デフォルトは false です。true である場合、 PP.pp は一度出力したオブジェクトを再び出力する時 Object#pretty_print_cycle を使います。
...
PP.pp は一度出力したオブジェクトを再び出力する時
Object#pretty_print_cycle を使います。
@param boolean 共有検出フラグを true か false で指定します。
//emlist[][ruby]{
b = [1, 2, 3]
a = [b, b]
pp a #=> [[1, 2, 3], [1, 2, 3]]
PP.sh......aring_detection = true
pp a #=> [[1, 2, 3], [...]]
//}... -
ruby 1
. 8 . 5 feature (23006.0) -
ruby 1.8.5 feature ruby 1.8.4 から ruby 1.8.5 までの変更点です。
...bug]: バグ修正
* [new]: 追加されたクラス/メソッドなど
* [compat]: 変更されたクラス/メソッドなど
* 互換性のある変更
* only backward-compatibility
* 影響の範囲が小さいと思われる変更もこちら
* [change]: 変更されたク......ble-snapshot|URL:ftp://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz>))
=== 2006-06-18
: BasicSocket#recv_nonblock [new]
: UDPSocket#recvfrom_nonblock [new]
追加
=== 2006-06-17
: Pathname(path) [new]
pathname で追加
: Kernel#pretty_inspect [new]
pp で追加
: RSS::TaxonomyTo......picModel [new]
: RSS::TaxonomyTopicsModel [new]
: RSS::Maker::TaxonomyTopicModel [new]
: RSS::Maker::TaxonomyTopicsModel [new]
RSS Parser/RSS MakerがTaxonomyモジュールをサポートしました。
: RSS::Maker xxx.new_yyy(&block) [compat]
maker.items.new_itemなどがブロックを... -
Kernel
. # pp(*obj) -> object (21163.0) -
指定されたオブジェクト obj を標準出力に見やすい形式(プリティプリント)で出力します。 obj それぞれを引数として PP.pp を呼ぶことと同等です。
...ぞれを引数として PP.pp を呼ぶことと同等です。
初回呼び出し時に自動的に pp を require します。
@param obj 表示したいオブジェクトを指定します。
//emlist[例][ruby]{
require 'pp'
b = [1, 2, 3] * 4
a = [b, b]
a << a
pp a
#=> [[1, 2, 3, 1, 2, 3,......1, 2, 3, 1, 2, 3],
# [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3],
# [...]]
//}
@see PP.pp... -
Gem
:: RemoteInstallationSkipped (18000.0) -
???
???