種類
ライブラリ
- ビルトイン (272)
- abbrev (24)
-
cgi
/ html (36) - coverage (8)
- csv (48)
- e2mmap (96)
- etc (24)
- fcntl (12)
- ipaddr (24)
-
irb
/ context (12) -
irb
/ output-method (24) - 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 (172)
- prettyprint (25)
- prime (108)
- psych (180)
- rake (264)
- readline (24)
-
rexml
/ sax2listener (24) - ripper (240)
-
ripper
/ filter (96) -
ripper
/ lexer (96) -
ripper
/ sexp (24) - rss (12)
-
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 (900)
-
webrick
/ httpproxy (24) -
webrick
/ httpstatus (48) -
webrick
/ httputils (12)
クラス
- Addrinfo (12)
- Array (16)
- CSV (48)
- Coverage (8)
-
Gem
:: Installer (12) -
Gem
:: Package :: TarInput (12) -
Gem
:: Requirement (48) - IPAddr (24)
-
IRB
:: Context (12) -
IRB
:: OutputMethod (24) - Integer (36)
-
JSON
:: State (24) -
Logger
:: Application (8) - Matrix (12)
- Method (14)
-
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 (96)
- Pathname (12)
- PrettyPrint (25)
- Prime (48)
-
Prime
:: PseudoPrimeGenerator (36) -
Process
:: Status (12) -
Psych
:: Handler (24) -
Psych
:: Nodes :: Mapping (144) -
Rake
:: Application (144) -
Rake
:: InvocationChain (24) -
Rake
:: InvocationChain :: EmptyInvocationChain (12) -
Rake
:: Task (36) - Ripper (300)
-
Ripper
:: Filter (84) -
Ripper
:: Lexer (36) -
RubyVM
:: InstructionSequence (24) - Shell (6)
-
Shell
:: AppendFile (12) -
Shell
:: AppendIO (12) -
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Socket (456)
-
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)
キーワード
- << (19)
- >> (7)
-
AF
_ APPLETALK (24) -
AF
_ PPP (24) -
AI
_ V4MAPPED (24) -
AI
_ V4MAPPED _ CFG (24) - ANY (12)
- APPEND (12)
- Abbrev (12)
- AppendFile (6)
- AppendIO (6)
- Application (13)
- BLOCK (12)
-
CLOCK
_ MONOTONIC _ RAW _ APPROX (12) -
CLOCK
_ UPTIME _ RAW _ APPROX (12) - CantApplyMethod (6)
-
DEFAULT
_ RAKEFILES (12) - DOSISH 対応 (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)
- Filter (12)
- HTTPPartialContent (12)
- HTTPPayloadTooLarge (7)
- HTTPPaymentRequired (12)
- HTTPPermanentRedirect (11)
- HTTPPreconditionFailed (12)
- HTTPPreconditionRequired (12)
- HTTPProcessing (8)
- HTTPProxyAuthenticationRequired (12)
- HTTPProxyServer (12)
- HTTPUnsupportedMediaType (12)
- HTTPVersionNotSupported (24)
-
IFF
_ PPROMISC (24) -
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)
- Lexer (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)
- OverlappedPrefixError (12)
-
PARSER
_ EVENTS (12) -
PARSER
_ EVENT _ TABLE (12) -
PF
_ APPLETALK (24) -
PF
_ PPP (24) - PP (12)
- Proppatch (12)
-
RC
_ HTTP _ VERSION _ NOT _ SUPPORTED (12) -
RC
_ UNSUPPORTED _ MEDIA _ TYPE (12) - Raise (12)
- RemoteInstallationSkipped (12)
- Ripper (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)
-
comma
_ breakable (12) -
compile
_ error (12) -
compile
_ option (12) -
completion
_ append _ character (12) -
completion
_ append _ character= (12) - coverage (8)
-
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)
- getifaddrs (12)
- implicit (12)
- implicit= (12)
- init (12)
- input= (12)
-
inspect
_ mode= (12) -
ipv4
_ mapped (12) -
ipv4
_ mapped? (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)
-
object
_ group (12) - of (10)
-
on
_ XXX (12) -
on
_ default (12) -
original
_ dir (12) - parse (82)
-
parse
_ file (10) - ppid (12)
- ppx (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
_ apply (12) -
rb
_ mod _ append _ features (12) -
rb
_ parser _ append _ print (12) - read (12)
- readlines (12)
-
rexml
/ document (12) -
rexml
/ parsers / ultralightparser (12) - ripper (12)
-
ripper
/ filter (12) -
ripper
/ lexer (12) -
ripper
/ sexp (12) -
ruby 1
. 8 . 5 feature (12) - run (12)
- seplist (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) - stopped? (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)
-
webrick
/ httpproxy (12) - xmlrpc (3)
- yydebug (12)
- yydebug= (12)
-
zipped
_ stream (12)
検索結果
先頭5件
-
Object
# pretty _ print(pp) -> () (8217.0) -
PP.pp や Kernel.#pp がオブジェクトの内容を出力するときに 呼ばれるメソッドです。PP オブジェクト pp を引数として呼ばれます。
...
PP.pp や Kernel.#pp がオブジェクトの内容を出力するときに
呼ばれるメソッドです。PP オブジェクト pp を引数として呼ばれます。
あるクラスの pp の出力をカスタマイズしたい場合は、このメソッドを再定義します。
そのと......ッドは指定された pp に対して表示したい自身の内容を追加して
いかなければいけません。いくつかの組み込みクラスについて、
pp ライブラリはあらかじめ pretty_print メソッドを定義しています。
@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... -
Object
# pretty _ print _ cycle(pp) -> () (8119.0) -
プリティプリント時にオブジェクトの循環参照が検出された場合、 Object#pretty_print の代わりに呼ばれるメソッドです。
...ect#pretty_print の代わりに呼ばれるメソッドです。
あるクラスの pp の出力をカスタマイズしたい場合は、
このメソッドも再定義する必要があります。
@param pp PP オブジェクトです。
//emlist[][ruby]{
class Array
def pretty_print_cycle(... -
Object
# pretty _ inspect -> String (8016.0) -
self を pp で表示したときの結果を文字列として返します。
...self を pp で表示したときの結果を文字列として返します。... -
Object
# pretty _ print _ instance _ variables -> [String | Symbol] (8006.0) -
プリティプリント時に表示すべき自身のインスタンス変数名の配列をソートして返します。 返されたインスタンス変数はプリティプリント時に表示されます。
...表示すべき自身のインスタンス変数名の配列をソートして返します。
返されたインスタンス変数はプリティプリント時に表示されます。
pp に表示したくないインスタンス変数がある場合にこのメソッドを再定義します。... -
Object
# pretty _ print _ inspect -> String (8000.0) -
Object#pretty_print を使って Object#inspect と同様に オブジェクトを人間が読める形式に変換した文字列を返します。
Object#pretty_print を使って Object#inspect と同様に
オブジェクトを人間が読める形式に変換した文字列を返します。
出力する全てのオブジェクトに Object#pretty_print が定義されている必要があります。
そうでない場合には RuntimeError が発生します。
@raise RuntimeError 出力する全てのオブジェクトに Object#pretty_print が定義されて
いない場合に発生します。 -
Shell
# append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (6300.0) -
@todo
@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。 -
Shell
:: CommandProcessor # append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (6300.0) -
@todo
@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。 -
Shell
:: Filter # append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (6300.0) -
@todo
@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。 -
Rake
. application -> Rake :: Application (6212.0) -
現在の Rake アプリケーションを返します。
...ケーションを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'pp'
task default: :test_rake_app
task :test_rake_app do
pp Rake.application
end
# => #<Rake::Application:0x31b0f18
# @default_loader=#<Rake::DefaultLoader:0x31b0c78>,
# @imported=[],
#......ile", "rakefile.rb", "Rakefile.rb"],
# @rules=[],
# @scope=LL(),
# @tasks=
# {"default"=><Rake::Task default => [test_rake_app]>,
# "test_rake_app"=><Rake::Task test_rake_app => []>},
# @terminal_columns=0,
# @top_level_tasks=["default"],
# @tty_output=false>
//}... -
Rake
. application=(app) (6212.0) -
現在の Rake アプリケーションをセットします。
...@param app Rake::Application のインスタンスを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'pp'
task default: :test_rake_app
task :test_rake_app do
app = Rake::Application.new
app.tty_output = true
Rake.application = app
pp Rake.application
end......# => #<Rake::Application:0x00005624e6c30eb8
# @default_loader=#<Rake::DefaultLoader:0x00005624e6c30cd8>,
# @imported=[],
# @last_description=nil,
# @loaders=
# {".rb"=>#<Rake::DefaultLoader:0x00005624e6c30bc0>,
# ".rf"=>#<Rake::DefaultLoader:0x00005624e6c30b48>,
#......_system=false, nosearch=false, rakelib=["rakelib"], show_all_tasks=false, show_prereqs=false, show_task_pattern=nil, show_tasks=nil, silent=false, suppress_backtrace_pattern=nil, thread_pool_size=20, trace=false, trace_output=#<IO:<STDERR>>, trace_rules=false>,
# @original_dir="/path/to/dir",
#... -
Prime
:: PseudoPrimeGenerator # upper _ bound=(upper _ bound) (6200.0) -
新しい列挙上界をセットします。
...新しい列挙上界をセットします。
@param upper_bound 新しい上界を整数または nil で指定します。 nil は上界がなく無限に素数を列挙すべきであることを意味します。...