ライブラリ
- ビルトイン (2664)
- base64 (22)
- benchmark (33)
- bigdecimal (62)
-
cgi
/ core (33) - csv (220)
- date (33)
- dbm (99)
- delegate (11)
- digest (44)
- gdbm (121)
- getoptlong (22)
-
io
/ console (55) -
io
/ wait (44) - ipaddr (33)
- json (22)
- matrix (123)
-
minitest
/ mock (1) -
net
/ ftp (132) -
net
/ http (44) -
net
/ pop (11) -
net
/ smtp (33) -
net
/ telnet (4) - nkf (11)
- openssl (616)
- optparse (231)
- ostruct (11)
- prime (33)
- psych (11)
- rake (132)
-
rake
/ packagetask (11) -
rake
/ rdoctask (11) -
rake
/ testtask (11) -
rdoc
/ code _ object (11) - readline (33)
-
rexml
/ document (66) -
rubygems
/ digest / digest _ adapter (11) -
rubygems
/ package / tar _ output (11) -
rubygems
/ package / tar _ writer (55) -
rubygems
/ security (11) -
rubygems
/ source _ index (22) - sdbm (99)
- set (200)
- shell (30)
-
shell
/ command-processor (30) -
shell
/ filter (24) - stringio (149)
- strscan (77)
- sync (24)
- syslog (154)
- tempfile (33)
- thread (6)
- time (22)
- uri (11)
-
webrick
/ accesslog (33) -
webrick
/ httpresponse (11) -
webrick
/ httpservlet / prochandler (11) -
webrick
/ httputils (44) -
yaml
/ dbm (11) - zlib (66)
クラス
-
ARGF
. class (185) - Array (468)
-
Benchmark
:: Job (22) -
Benchmark
:: Tms (11) - BigDecimal (62)
- CGI (11)
- CSV (77)
-
CSV
:: Row (44) -
CSV
:: Table (99) - Complex (11)
- DBM (99)
- Date (33)
- Delegator (11)
-
Digest
:: Base (44) - Dir (39)
- Enumerator (22)
-
Enumerator
:: ArithmeticSequence (12) -
Enumerator
:: Lazy (11) - Exception (11)
- Float (19)
- GDBM (121)
-
Gem
:: DigestAdapter (11) -
Gem
:: Package :: TarOutput (11) -
Gem
:: Package :: TarWriter (55) -
Gem
:: SourceIndex (22) - GetoptLong (22)
- Hash (241)
- IO (350)
- IPAddr (33)
- Integer (55)
-
JSON
:: State (22) - Matrix (67)
-
MiniTest
:: Mock (1) - Module (185)
- Mutex (4)
-
Net
:: FTP (132) -
Net
:: HTTP (11) -
Net
:: HTTPResponse (33) -
Net
:: POP3 (11) -
Net
:: SMTP (33) -
Net
:: Telnet (4) - Numeric (55)
- Object (94)
-
OpenSSL
:: ASN1 :: Constructive (11) -
OpenSSL
:: BN (77) -
OpenSSL
:: Cipher (55) -
OpenSSL
:: Config (11) -
OpenSSL
:: Digest (33) -
OpenSSL
:: Engine (11) -
OpenSSL
:: HMAC (33) -
OpenSSL
:: Netscape :: SPKI (11) -
OpenSSL
:: OCSP :: BasicResponse (33) -
OpenSSL
:: OCSP :: Request (33) -
OpenSSL
:: PKCS7 (44) -
OpenSSL
:: PKey :: DH (11) -
OpenSSL
:: PKey :: EC (11) -
OpenSSL
:: PKey :: EC :: Group (11) -
OpenSSL
:: PKey :: EC :: Point (33) -
OpenSSL
:: SSL :: SSLContext (11) -
OpenSSL
:: SSL :: SSLSocket (44) -
OpenSSL
:: X509 :: CRL (11) -
OpenSSL
:: X509 :: Certificate (11) -
OpenSSL
:: X509 :: Request (11) -
OpenSSL
:: X509 :: Store (44) -
OpenSSL
:: X509 :: StoreContext (11) - OpenStruct (11)
- OptionParser (220)
-
OptionParser
:: ParseError (11) -
Prime
:: PseudoPrimeGenerator (33) - Proc (11)
-
Psych
:: Parser (11) -
RDoc
:: CodeObject (11) -
REXML
:: Child (22) -
REXML
:: Element (22) -
REXML
:: Parent (22) -
Rake
:: FileList (88) -
Rake
:: PackageTask (11) -
Rake
:: RDocTask (11) -
Rake
:: Task (44) -
Rake
:: TestTask (11) - Range (22)
- Refinement (3)
- SDBM (99)
- Set (200)
- Shell (30)
-
Shell
:: CommandProcessor (30) -
Shell
:: Filter (24) - String (514)
- StringIO (149)
- StringScanner (77)
- Struct (22)
- Symbol (22)
- Tempfile (33)
- Thread (77)
-
Thread
:: ConditionVariable (33) -
Thread
:: Mutex (18) -
Thread
:: Queue (9) -
Thread
:: SizedQueue (9) - ThreadGroup (22)
- Time (66)
- TracePoint (11)
-
URI
:: Generic (11) - Vector (56)
-
WEBrick
:: HTTPResponse (11) -
WEBrick
:: HTTPServlet :: ProcHandler (11) -
WEBrick
:: HTTPUtils :: FormData (22) -
YAML
:: DBM (11) -
Zlib
:: Deflate (11) -
Zlib
:: GzipReader (22) -
Zlib
:: GzipWriter (22) -
Zlib
:: Inflate (11)
モジュール
- Base64 (22)
-
CGI
:: QueryExtension :: Value (22) - Enumerable (61)
-
Gem
:: Security (11) - Kernel (22)
-
OpenSSL
:: Buffering (11) -
OpenSSL
:: OCSP (11) -
OpenSSL
:: Random (11) -
OpenSSL
:: X509 (22) -
Sync
_ m (24) - Syslog (154)
- WEBrick (22)
-
WEBrick
:: AccessLog (33)
オブジェクト
- ENV (71)
-
Readline
:: HISTORY (33) - main (36)
キーワード
- +@ (53)
- -@ (20)
- < (6)
- << (198)
- > (6)
- >> (6)
- CLF (11)
-
CLF
_ TIME _ FORMAT (11) -
COMMON
_ LOG _ FORMAT (11) - CRLF (11)
- NKF (11)
-
RESPONSE
_ STATUS _ MALFORMEDREQUEST (11) -
ROUND
_ HALF _ DOWN (11) -
ROUND
_ HALF _ EVEN (11) -
ROUND
_ HALF _ UP (11) -
V
_ ERR _ DEPTH _ ZERO _ SELF _ SIGNED _ CERT (11) -
V
_ ERR _ SELF _ SIGNED _ CERT _ IN _ CHAIN (11) - accept (11)
-
accept
_ nonblock (11) - add (22)
- add! (11)
- add? (11)
-
add
_ cert (11) -
add
_ certid (11) -
add
_ certificate (11) -
add
_ crl (22) -
add
_ file (33) -
add
_ file _ simple (22) -
add
_ gem _ contents (11) -
add
_ namespace (11) -
add
_ nonce (22) -
add
_ path (11) -
add
_ recipient (11) -
add
_ row (11) -
add
_ signer (11) -
add
_ status (11) - alert (11)
-
alias
_ command (18) -
alias
_ method (8) - append (7)
-
append
_ data (11) -
append
_ features (11) - binmode (44)
- broadcast (11)
-
build
_ self _ signed _ cert (11) -
by
_ col! (11) -
by
_ col _ or _ row! (11) -
by
_ row! (11) - byterindex (2)
- bytes (32)
- capitalize! (11)
- cd (12)
- chars (32)
- chdir (6)
- chomp! (11)
- chop! (11)
- cleanup (11)
- clear (121)
-
clear
_ actions (11) -
clear
_ bit! (11) -
clear
_ exclude (11) -
clear
_ prerequisites (11) - clone (7)
- close (29)
- codepoints (32)
- collect! (34)
- column (11)
- combination (11)
- compact! (19)
-
compare
_ by _ identity (11) - concat (49)
- configure (11)
- connect (11)
-
connect
_ nonblock (11) - cooked! (11)
- copy (11)
- crit (11)
-
ctrl
_ cmd (11) - debug (11)
- decrypt (22)
- dedup (2)
- define (33)
- delete (22)
- delete! (11)
- delete? (11)
-
delete
_ if (99) -
delete
_ namespace (11) -
delete
_ prefix! (7) -
delete
_ suffix! (7) -
deprecate
_ constant (9) -
document
_ self (11) - downcase! (11)
- downto (22)
- each (298)
- each2 (11)
-
each
_ byte (44) -
each
_ char (44) -
each
_ child (6) -
each
_ codepoint (44) -
each
_ cons (3) -
each
_ entry (11) -
each
_ grapheme _ cluster (7) -
each
_ index (11) -
each
_ key (55) -
each
_ line (88) -
each
_ pair (77) -
each
_ slice (3) -
each
_ value (55) -
each
_ with _ index (33) - emerg (11)
- enclose (11)
- encode (33)
- encode! (22)
- encrypt (22)
- enhance (11)
- err (11)
- exception (11)
- exclude (11)
- existing! (11)
- exit (11)
- expect (1)
- extend (11)
- file (11)
- fill (66)
- filter! (18)
- first (11)
- flatten! (22)
- flush (44)
-
flush
_ sessions (11) -
force
_ encoding (11) - freeze (33)
-
generate
_ key (11) -
generate
_ key! (11) - get (22)
-
get
_ instance (11) - getbinaryfile (22)
- gettextfile (22)
- gmtime (11)
-
grapheme
_ clusters (7) - gsub! (44)
- header (11)
- iflush (11)
- import (11)
-
import
_ methods (3) - include (33)
- info (11)
- inject (11)
- insert (22)
-
insert
_ after (11) -
insert
_ before (11) - instance (11)
- intern (11)
- invert! (11)
- ioflush (11)
- item (11)
- itself (11)
- join (22)
-
keep
_ if (33) - kill (11)
- last (11)
- lazy (11)
- lines (60)
-
load
_ gems _ in (11) - localtime (22)
- lock (17)
- log (11)
- lshift! (11)
- lstrip! (11)
- mailfrom (11)
-
make
_ affine! (11) - map! (34)
- mask! (11)
-
mask
_ bits! (11) - merge (33)
- merge! (38)
- mkdir (11)
-
module
_ function (7) -
must
_ C _ version (11) - native (11)
- new (15)
- nextc (11)
- nonzero? (22)
- notice (11)
- oflush (11)
- on (132)
-
on
_ head (11) -
on
_ tail (11) - open (55)
- open! (11)
- order! (22)
- parse (11)
- parse! (11)
- permutation (22)
- permute! (11)
- prepend (18)
-
prepend
_ features (11) - private (14)
-
private
_ class _ method (15) -
private
_ constant (11) - product (11)
- protected (7)
- public (14)
-
public
_ class _ method (15) -
public
_ constant (11) - push (44)
- put (22)
- putbinaryfile (22)
- puts (11)
- puttextfile (22)
-
random
_ add (11) - raw! (11)
-
reader
_ header (11) - ready (11)
- reduce (11)
- refresh! (11)
- rehash (11)
- reject! (66)
- remove (11)
-
remove
_ method (11) - reopen (55)
- reorganize (11)
-
repeated
_ combination (11) -
repeated
_ permutation (11) - replace (66)
-
replace
_ with (11) - report (11)
- reset (62)
- resolve (11)
- response (11)
- reverse! (22)
-
reverse
_ each (22) - rewind (22)
- rindex (11)
- rotate! (11)
- round (19)
- row (11)
- rshift! (11)
- rstrip! (11)
-
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) - run (11)
- scan (11)
- seek (11)
- select! (33)
- self (11)
- set (11)
-
set
_ bit! (11) -
set
_ encoding (99) -
set
_ generator (11) -
set
_ option (11) -
set
_ to _ infinity! (11) - shuffle! (22)
- sign (66)
- signal (11)
- skip (11)
- sort! (22)
-
sort
_ by! (11) - split (6)
- squeeze! (11)
- start (22)
-
status
_ line (11) - step (55)
-
strict
_ decode64 (11) - strip! (11)
- strptime (22)
- sub! (33)
- subtract (11)
- summarize (22)
- swapcase! (11)
- sync (11)
-
sync
_ lock (6) -
sync
_ unlock (6) - taint (9)
- tap (11)
- terminate (33)
- times (11)
-
to
_ ary (11) -
to
_ bn (11) -
to
_ c (11) -
to
_ f (11) -
to
_ h (11) -
to
_ hash (11) -
to
_ i (11) -
to
_ int (11) -
to
_ io (22) -
to
_ proc (11) -
to
_ sym (11) - tr! (11)
-
tr
_ s! (11) -
transform
_ keys! (10) -
transform
_ values! (8) - trust (9)
-
unalias
_ command (6) -
undef
_ method (11) -
undef
_ system _ command (6) -
unicode
_ normalize! (10) - uniq! (22)
- unlink (29)
- unlock (17)
- unscan (11)
- unshift (11)
- untaint (9)
- untrust (9)
- upcase! (11)
- update (110)
- upto (22)
-
urlsafe
_ decode64 (11) - using (22)
- utc (11)
- wait (22)
-
wait
_ readable (11) -
wait
_ writable (22) - wakeup (11)
- warning (11)
-
with
_ index (11) -
yield
_ self (14) - 正規表現 (11)
検索結果
先頭5件
-
CGI
:: LF -> String (18201.0) -
ラインフィードを表す文字列です。
ラインフィードを表す文字列です。 -
WEBrick
:: LF -> "\x0a" (18201.0) -
内部で利用する定数です。
内部で利用する定数です。 -
Vector
# -@ -> self (6216.0) -
単項演算子の - です。 各要素の符号を反転したベクトルを返します。
...単項演算子の - です。 各要素の符号を反転したベクトルを返します。... -
String
# -@ -> String | self (6212.0) -
self が freeze されている文字列の場合、self を返します。 freeze されていない場合は元の文字列の freeze された (できる限り既存の) 複製を返します。
...self が freeze されている文字列の場合、self を返します。
freeze されていない場合は元の文字列の freeze された (できる限り既存の) 複製を返します。
//emlist[例][ruby]{
# frozen_string_literal: false
original_text = "text"
frozen_text = -original_......# => true
original_text == frozen_text # => true
original_text.equal?(frozen_text) # => false
original_text = "text".freeze
frozen_text = -original_text
frozen_text.frozen? # => true
original_text == frozen_text # => true
original_text.equal?(frozen_text) # => tr... -
Object
# yield _ self -> Enumerator (6206.0) -
self を引数としてブロックを評価し、ブロックの結果を返します。
...self を引数としてブロックを評価し、ブロックの結果を返します。
//emlist[例][ruby]{
"my string".yield_self {|s| s.upcase } # => "MY STRING"
3.next.yield_self {|x| x**x }.to_s # => "256"
//}
値をメソッドチェインのパイプラインに次々と渡すの......良い使い方です。
//emlist[メソッドチェインのパイプライン][ruby]{
require 'open-uri'
require 'json'
construct_url(arguments).
yield_self {|url| URI(url).read }.
yield_self {|response| JSON.parse(response) }
//}
ブロックなしで呼び出されたときは Enumerator......返します。
例えば条件によって値を捨てるのに使えます。
//emlist[][ruby]{
# 条件にあうので何もしない
1.yield_self.detect(&:odd?) # => 1
# 条件に合わないので値を捨てる
2.yield_self.detect(&:odd?) # => nil
//}
@see Object#tap... -
Object
# yield _ self {|x| . . . } -> object (6206.0) -
self を引数としてブロックを評価し、ブロックの結果を返します。
...self を引数としてブロックを評価し、ブロックの結果を返します。
//emlist[例][ruby]{
"my string".yield_self {|s| s.upcase } # => "MY STRING"
3.next.yield_self {|x| x**x }.to_s # => "256"
//}
値をメソッドチェインのパイプラインに次々と渡すの......良い使い方です。
//emlist[メソッドチェインのパイプライン][ruby]{
require 'open-uri'
require 'json'
construct_url(arguments).
yield_self {|url| URI(url).read }.
yield_self {|response| JSON.parse(response) }
//}
ブロックなしで呼び出されたときは Enumerator......返します。
例えば条件によって値を捨てるのに使えます。
//emlist[][ruby]{
# 条件にあうので何もしない
1.yield_self.detect(&:odd?) # => 1
# 条件に合わないので値を捨てる
2.yield_self.detect(&:odd?) # => nil
//}
@see Object#tap... -
BigDecimal
:: ROUND _ HALF _ DOWN -> Integer (6200.0) -
BigDecimal の計算結果の丸め処理で五捨六入するかどうかを設定、確認 する際の値を返します。
BigDecimal の計算結果の丸め処理で五捨六入するかどうかを設定、確認
する際の値を返します。
BigDecimal.mode の第 2 引数に指定します。 -
BigDecimal
:: ROUND _ HALF _ EVEN -> Integer (6200.0) -
BigDecimal の計算結果の丸め処理で四捨六入するかどうかを設定、確認 する際の値を返します。5の時は上位1桁が奇数の時のみ繰り上げます (Banker's rounding)。
BigDecimal の計算結果の丸め処理で四捨六入するかどうかを設定、確認
する際の値を返します。5の時は上位1桁が奇数の時のみ繰り上げます
(Banker's rounding)。
BigDecimal.mode の第 2 引数に指定します。 -
BigDecimal
:: ROUND _ HALF _ UP -> Integer (6200.0) -
BigDecimal の計算結果の丸め処理で四捨五入するかどうかを設定、確認 する際の値を返します。
BigDecimal の計算結果の丸め処理で四捨五入するかどうかを設定、確認
する際の値を返します。
BigDecimal.mode の第 2 引数に指定します。 -
Gem
:: Security . build _ self _ signed _ cert(email _ addr , options = {}) -> Hash (6200.0) -
与えられたメールアドレスを元にして自己署名証明書を作成します。
与えられたメールアドレスを元にして自己署名証明書を作成します。
@param email_addr メールアドレスを指定します。
@param options オプションを指定します。
@return 鍵と証明書とそれらを保存したパスを表すハッシュを返します。 -
Net
:: SMTP # mailfrom(from _ addr) -> Net :: SMTP :: Response (6200.0) -
MAILFROM コマンドを送ります。
...MAILFROM コマンドを送ります。
通常は Net::SMTP#send_message, Net::SMTP#open_message_stream で
MAILFROM が送られるため利用する必要はないはずです。
@param from_addr 送信元メールアドレス... -
Object
# itself -> object (6200.0) -
self を返します。
...self を返します。
//emlist[][ruby]{
string = 'my string' # => "my string"
string.itself.object_id == string.object_id # => true
//}...