種類
ライブラリ
- ビルトイン (244)
- abbrev (22)
-
cgi
/ html (33) - coverage (7)
- csv (44)
- e2mmap (96)
- etc (22)
- fcntl (11)
- ipaddr (22)
-
irb
/ context (11) -
irb
/ output-method (22) - json (44)
- logger (9)
- matrix (11)
-
minitest
/ unit (2) - mkmf (55)
-
mutex
_ m (11) -
net
/ ftp (31) -
net
/ http (122) -
net
/ imap (11) -
net
/ smtp (11) -
net
/ telnet (4) - openssl (55)
- pathname (11)
- pp (147)
- prettyprint (23)
- prime (99)
- psych (165)
- rake (242)
- readline (22)
-
rexml
/ sax2listener (22) - ripper (220)
-
ripper
/ filter (88) -
ripper
/ lexer (88) -
ripper
/ sexp (22) - rss (11)
-
rubygems
/ exceptions (22) -
rubygems
/ installer (11) -
rubygems
/ package / tar _ input (11) -
rubygems
/ requirement (44) - shell (6)
-
shell
/ builtin-command (36) -
shell
/ command-processor (6) -
shell
/ error (6) -
shell
/ filter (6) - socket (825)
-
webrick
/ httpproxy (22) -
webrick
/ httpstatus (44) -
webrick
/ httputils (11)
クラス
- Addrinfo (11)
- Array (14)
- CSV (44)
- Coverage (7)
-
Gem
:: Installer (11) -
Gem
:: Package :: TarInput (11) -
Gem
:: Requirement (44) - IPAddr (22)
-
IRB
:: Context (11) -
IRB
:: OutputMethod (22) - Integer (33)
-
JSON
:: State (22) -
Logger
:: Application (8) - Matrix (11)
- Method (12)
-
MiniTest
:: Unit :: TestCase (1) - Module (11)
-
Net
:: FTP :: MLSxEntry (9) -
Net
:: HTTP (11) -
Net
:: IMAP (11) -
Net
:: Telnet (4) - Object (55)
-
OpenSSL
:: BN (22) - PP (88)
- Pathname (11)
- PrettyPrint (23)
- Prime (44)
-
Prime
:: PseudoPrimeGenerator (33) -
Process
:: Status (11) -
Psych
:: Handler (22) -
Psych
:: Nodes :: Mapping (132) -
Rake
:: Application (132) -
Rake
:: InvocationChain (22) -
Rake
:: InvocationChain :: EmptyInvocationChain (11) -
Rake
:: Task (33) - Ripper (275)
-
Ripper
:: Filter (77) -
Ripper
:: Lexer (33) -
RubyVM
:: InstructionSequence (22) - Shell (6)
-
Shell
:: AppendFile (12) -
Shell
:: AppendIO (12) -
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Socket (418)
-
WEBrick
:: HTTPProxyServer (11) -
WEBrick
:: HTTPUtils :: FormData (11)
モジュール
- Abbrev (11)
-
CGI
:: HtmlExtension (22) -
CGI
:: TagMaker (11) - Enumerable (33)
- Etc (22)
- Exception2MessageMapper (78)
- Fcntl (11)
-
File
:: Constants (11) - Kernel (77)
-
MiniTest
:: Assertions (1) -
Mutex
_ m (11) -
OpenSSL
:: ASN1 (11) -
OpenSSL
:: X509 (11) - Process (33)
-
REXML
:: SAX2Listener (22) - Rake (22)
-
Rake
:: TaskManager (11) - Readline (22)
-
RubyVM
:: AbstractSyntaxTree (24) -
Socket
:: Constants (396) -
WEBrick
:: HTTPStatus (22)
キーワード
- << (17)
- >> (6)
-
AF
_ APPLETALK (22) -
AF
_ PPP (22) -
AI
_ V4MAPPED (22) -
AI
_ V4MAPPED _ CFG (22) - ANY (11)
- APPEND (11)
- Abbrev (11)
- AppendFile (6)
- AppendIO (6)
- Application (12)
- BLOCK (11)
-
CLOCK
_ MONOTONIC _ RAW _ APPROX (11) -
CLOCK
_ UPTIME _ RAW _ APPROX (11) - CantApplyMethod (6)
-
DEFAULT
_ RAKEFILES (11) - DOSISH 対応 (11)
- E2MM (6)
- EAFNOSUPPORT (11)
- EOPNOTSUPP (11)
- EPFNOSUPPORT (11)
- EPROTONOSUPPORT (11)
- ESOCKTNOSUPPORT (11)
- EVENTS (11)
- ErrNotRegisteredException (6)
- Exception2MessageMapper (6)
- FLOW (11)
- FTPPermError (11)
- FTPProtoError (11)
- Fail (12)
- Filter (11)
- HTTPPartialContent (11)
- HTTPPayloadTooLarge (6)
- HTTPPaymentRequired (11)
- HTTPPermanentRedirect (10)
- HTTPPreconditionFailed (11)
- HTTPPreconditionRequired (11)
- HTTPProcessing (7)
- HTTPProxyAuthenticationRequired (11)
- HTTPProxyServer (11)
- HTTPUnsupportedMediaType (11)
- HTTPVersionNotSupported (22)
-
IFF
_ PPROMISC (22) -
IFF
_ SUPP _ NOFCS (22) -
IPPORT
_ RESERVED (22) -
IPPORT
_ USERRESERVED (22) -
IPPROTO
_ AH (22) -
IPPROTO
_ BIP (22) -
IPPROTO
_ DSTOPTS (22) -
IPPROTO
_ EGP (22) -
IPPROTO
_ EON (22) -
IPPROTO
_ ESP (22) -
IPPROTO
_ FRAGMENT (22) -
IPPROTO
_ GGP (22) -
IPPROTO
_ HELLO (22) -
IPPROTO
_ HOPOPTS (22) -
IPPROTO
_ ICMP (22) -
IPPROTO
_ ICMPV6 (22) -
IPPROTO
_ IDP (22) -
IPPROTO
_ IGMP (22) -
IPPROTO
_ IP (22) -
IPPROTO
_ IPV6 (22) -
IPPROTO
_ MAX (22) -
IPPROTO
_ ND (22) -
IPPROTO
_ NONE (22) -
IPPROTO
_ PUP (22) -
IPPROTO
_ RAW (22) -
IPPROTO
_ ROUTING (22) -
IPPROTO
_ TCP (22) -
IPPROTO
_ TP (22) -
IPPROTO
_ UDP (22) -
IPPROTO
_ XTP (22) - ISUPPER (11)
- Lexer (11)
- Mapping (11)
- MissingUnicodeSupport (11)
-
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) -
O
_ APPEND (11) - OperationNotSupportedError (11)
- OverlappedPrefixError (11)
-
PARSER
_ EVENTS (11) -
PARSER
_ EVENT _ TABLE (11) -
PF
_ APPLETALK (22) -
PF
_ PPP (22) - PP (11)
- Proppatch (11)
-
RC
_ HTTP _ VERSION _ NOT _ SUPPORTED (11) -
RC
_ UNSUPPORTED _ MEDIA _ TYPE (11) - Raise (12)
- RemoteInstallationSkipped (11)
- Ripper (11)
-
SCANNER
_ EVENTS (11) -
SCANNER
_ EVENT _ TABLE (11) -
SCRIPT
_ LINES _ _ (11) -
SC
_ MAPPED _ FILES (11) - SMTPUnsupportedCommand (11)
-
SUPPORTS
_ INFO _ SIGNAL (1) - UnsupportedMediaType (11)
-
V
_ ERR _ APPLICATION _ VERIFICATION (11) - Version (11)
- abbrev (11)
- anchor (11)
- anchor= (11)
-
app
_ script _ text (11) - append (69)
-
append
_ data (11) -
append
_ features (22) - appendable? (9)
- application (22)
- application= (22)
- appname (1)
- bind (6)
-
block
_ append (11) - chunk (11)
-
comma
_ breakable (11) -
compile
_ error (11) -
compile
_ option (11) -
completion
_ append _ character (11) -
completion
_ append _ character= (11) - coverage (7)
-
cpp
_ command (11) - create (11)
- debug (11)
- decode (11)
-
def
_ exception (12) - default (11)
-
e
_ option _ supplied (11) - each (44)
-
each
_ prime (22) -
egrep
_ cpp (22) - encoding (11)
-
end
_ mapping (11) -
end
_ prefix _ mapping (11) -
end
_ seen? (11) - entries (11)
-
extend
_ object (6) - fail (6)
- filename (22)
- first? (1)
- form (22)
- format (11)
- getaddrinfo (11)
- getifaddrs (11)
- implicit (11)
- implicit= (11)
- init (11)
- input= (12)
-
inspect
_ mode= (11) -
ipv4
_ mapped (11) -
ipv4
_ mapped? (11) -
ipv6
_ v4mapped? (11) - irb (11)
- jj (11)
- level= (1)
- lex (22)
- lineno (22)
-
list
_ append (11) -
literal
_ append (11) -
load
_ rakefile (11) -
local
_ append (11) - log (2)
- log= (1)
- login (4)
-
mu
_ pp (1) -
nOE
_ element _ def (11) - name (11)
- new (90)
-
object
_ group (11) - of (8)
-
on
_ XXX (11) -
on
_ default (11) -
original
_ dir (11) - parse (74)
-
parse
_ file (8) - pp (55)
- ppid (11)
- ppx (11)
-
pretty
_ inspect (11) -
pretty
_ print (33) -
pretty
_ print _ cycle (11) -
pretty
_ print _ instance _ variables (11) - proppatch (11)
- push (7)
- rakefile (11)
-
rb
_ apply (11) -
rb
_ mod _ append _ features (11) -
rb
_ parser _ append _ print (11) - read (11)
- readlines (11)
-
rexml
/ document (11) -
rexml
/ parsers / ultralightparser (11) - ripper (11)
-
ripper
/ filter (11) -
ripper
/ lexer (11) -
ripper
/ sexp (11) -
ruby 1
. 8 . 5 feature (11) - run (11)
- seplist (11)
-
set
_ log (1) - sexp (11)
-
sexp
_ raw (11) -
sharing
_ detection (11) -
sharing
_ detection= (11) -
singleline
_ format (11) -
singleline
_ pp (11) - slice (11)
-
slice
_ before (22) - start (8)
-
start
_ mapping (11) -
start
_ prefix _ mapping (11) - stopped? (11)
- style (11)
- style= (11)
- tag (11)
- tag= (11)
- tasks (11)
-
to
_ a (11) -
to
_ bn (11) -
to
_ h (11) -
to
_ hash (11) -
token
_ match (11) - tokenize (22)
-
top
_ level (11) -
top
_ level _ tasks (11) -
try
_ cpp (22) - tsort (11)
-
tty
_ output= (11) - uname (11)
-
upper
_ bound (11) -
upper
_ bound= (11) -
upper
_ triangular? (11) - warn (11)
- warning (11)
-
webrick
/ httpproxy (11) - xmlrpc (3)
- yydebug (11)
- yydebug= (11)
-
zipped
_ stream (11)
検索結果
先頭5件
-
Kernel
# jj(*objects) -> nil (12.0) -
与えられたオブジェクトを JSON 形式の文字列で標準出力に人間に読みやすく整形して出力します。
...します。
@param objects JSON 形式で出力したいオブジェクトを指定します。
//emlist[例][ruby]{
require "json"
jj([1,2,{"name" => "tanaka","age" => 19}])
# => [
# 1,
# 2,
# {
# "name": "tanaka",
# "age": 19
# }
# ]
//}
@see Kernel.#pp... -
Method
# <<(callable) -> Proc (12.0) -
self と引数を合成した Proc を返します。
...uby]{
class WordScanner
def self.call(str)
str.scan(/\w+/)
end
end
File.write('testfile', <<~TEXT)
Hello, World!
Hello, Ruby!
TEXT
pipeline = method(:pp) << WordScanner << File.method(:read)
pipeline.call('testfile') # => ["Hello", "World", "Hello", "Ruby"]
//}
@see Proc#<<, Proc#>>... -
Method
# >>(callable) -> Proc (12.0) -
self と引数を合成した Proc を返します。
...uby]{
class WordScanner
def self.call(str)
str.scan(/\w+/)
end
end
File.write('testfile', <<~TEXT)
Hello, World!
Hello, Ruby!
TEXT
pipeline = File.method(:read) >> WordScanner >> method(:pp)
pipeline.call('testfile') # => ["Hello", "World", "Hello", "Ruby"]
//}
@see Proc#<<, Proc#>>... -
NEWS for Ruby 2
. 5 . 0 (12.0) -
NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...黙の to_s 呼び出しにも refinements が影響するようになりました 13812
=== 組み込みクラスの更新
* Array
* Array#append を追加 12746
* Array#prepend を追加 12746
* Data
* 非推奨になりました。C拡張のベースクラスでしたが、Ruby......teger#anybits?, Integer#nobits? を追加 12753
* Integer.sqrt を追加 13219
* Kernel
* Object#yield_self を追加 6721
* Kernel.#pp をrequireなしで使えるようにしました 14123
* Kernel.#warn :uplevel というキーワード引数を追加しました 12882
*......1fcfacccf36909d05 に更新
* 非包含オペレータ(absence operator)をサポート https://github.com/k-takata/Onigmo/issues/82
* Support new 5 emoji-related Unicode character properties
* RubyVM::InstructionSequence
* RubyVM::InstructionSequence#each_child を追加
* Ru... -
NEWS for Ruby 3
. 0 . 0 (12.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...[[[1]], {}]
pr.call([1, {a: 1}])
# 2.7 => [[1], {:a=>1}] # and deprecation warning
# 3.0 => a=>1}, {}]
//}
* Arguments forwarding (`...`) now supports leading arguments.
16378
//emlist{
def method_missing(meth, ...)
send(:"do_#{meth}", ...)
end
//}
* Pattern matching (`case/in`) is......ERIMENTAL]
16828
//emlist{
case ["a", 1, "b", "c", 2, "d", "e", "f", 3]
in [*pre, String => x, String => y, *post]
p pre #=> ["a", 1]
p x #=> "b"
p y #=> "c"
p post #=> [2, "d", "e", "f", 3]
end
//}
* Endless method definition is added. [EXPERIMENTAL]
16746
//emlist{
def......ting blocking operations and Fiber.scheduler for accessing the current scheduler. See rdoc-ref:fiber.md for more details about what operations are supported and how to implement the scheduler hooks. 16786
* Fiber.blocking? tells whether the current execution context is blocking. 16786
* Thre... -
Net
:: Telnet # login(opts , password=nil) -> String (12.0) -
指定したユーザ名とパスワードでログインします。
...は /[Ll]ogin[: ]*\z/n です。
"PasswordPrompt" パスワード入力プロンプトを正規表現で指定します。
デフォルト値は /[Pp]ass(?:word|phrase)[: ]*\z/n です。
パスワードを省略した場合には、パスワード入力プロンプトを
待ちません。Net::Te... -
Net
:: Telnet # login(opts , password=nil) {|mesg| . . . } -> String (12.0) -
指定したユーザ名とパスワードでログインします。
...は /[Ll]ogin[: ]*\z/n です。
"PasswordPrompt" パスワード入力プロンプトを正規表現で指定します。
デフォルト値は /[Pp]ass(?:word|phrase)[: ]*\z/n です。
パスワードを省略した場合には、パスワード入力プロンプトを
待ちません。Net::Te... -
RubyVM
:: AbstractSyntaxTree . parse(string) -> RubyVM :: AbstractSyntaxTree :: Node (12.0) -
文字列を抽象構文木にパースし、その木の根ノードを返します。
...文字列で指定します。
@raise SyntaxError string が Ruby のコードとして正しくない場合に発生します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse("x = 1 + 2")
# => (SCOPE@1:0-1:9
# tbl: [:x]
# args: nil
# body:
# (LASGN@1:0-1:9 :x
# (... -
Socket
. getaddrinfo(nodename , servname , family=nil , socktype=nil , protocol=nil , flags=nil) -> Array (12.0) -
2553で定義された getaddrinfo() の機能を提供するクラスメソッド。この関数は gethostbyname() や getservbyname() の代わりとして用意されており、 IP のバージョンに依存しないプログラムを書くための標準的な API です。
...ket::Constants::SOCK_STREAM など、 SOCK_ で始まる定数を指定します。
@param protocol プロトコル。Socket::Constants::IPPROTO_IP など、IPPROTO_ で始まる定数を指定します。
@param flags getaddrinfo(3) の第3引数に指定する addrinfo 構造体の ai_flags メ......nstants::SOCK_STREAM など、SOCK_ で始まる定数を指定
します。
* protocol - プロトコル。
Socket::Constants::IPPROTO_IP など、IPPROTO_ で始まる定数を指
定します。
* flags - getaddrinfo(3) の第3引数に指定する addrinfo 構造体の
ai_fla......require 'socket'
p Socket.getaddrinfo(Socket.gethostname, "ftp")
#=> [["AF_INET", 21, "helium.ruby-lang.org", "210.251.121.214", 2, 1, 6]]
pp Socket.getaddrinfo(Socket.gethostname, nil)
#=> [["AF_INET", 0, "helium.ruby-lang.org", "210.251.121.214", 2, 1, 6],
# ["AF_INET", 0, "hel... -
debug (12.0)
-
Ruby デバッガです。Ruby スクリプトのソースコードデバッグに使用します。
...えます。
: thread stop <nnn>
スレッド <nnn> を停止します。
: thread resume <nnn>
スレッド <nnn> を再開します。
: pp <expression>
ruby の式 <expression> の結果を見やすく表示します。
: p <expression>
ruby の式 <expression> の結果を表... -
ruby 1
. 8 . 5 feature (12.0) -
ruby 1.8.5 feature ruby 1.8.4 から ruby 1.8.5 までの変更点です。
...ck [new]
: UDPSocket#recvfrom_nonblock [new]
追加
=== 2006-06-17
: Pathname(path) [new]
pathname で追加
: Kernel#pretty_inspect [new]
pp で追加
: RSS::TaxonomyTopicModel [new]
: RSS::TaxonomyTopicsModel [new]
: RSS::Maker::TaxonomyTopicModel [new]
: RSS::Maker::TaxonomyTopicsMod... -
tsort (12.0)
-
tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。
...分に関するアルゴリズムを使っているからです。
とはいえ strongly_connected_components という正確な名前は長過ぎます。
=== References
R. E. Tarjan,
Depth First Search and Linear Graph Algorithms,
SIAM Journal on Computing, Vol. 1, No. 2, pp. 146-160, June 1972....