ライブラリ
- ビルトイン (2475)
- abbrev (10)
- base64 (60)
- benchmark (50)
- bigdecimal (40)
-
bigdecimal
/ jacobian (30) -
bigdecimal
/ ludcmp (20) -
bigdecimal
/ math (60) -
bigdecimal
/ newton (20) - cmath (240)
- continuation (10)
- digest (10)
-
digest
/ bubblebabble (10) - drb (130)
- erb (50)
- etc (210)
- fiddle (60)
- fileutils (465)
- find (30)
- json (110)
- kconv (130)
- mathn (8)
- nkf (20)
- objspace (110)
- open-uri (14)
- open3 (180)
- openssl (620)
- pp (4)
- profiler (18)
- pty (40)
- readline (10)
- rubygems (110)
- shellwords (40)
- syslog (230)
- timeout (17)
- uri (10)
-
webrick
/ accesslog (30) -
webrick
/ htmlutils (10) -
webrick
/ httpauth (20) -
webrick
/ httpstatus (70) -
webrick
/ httputils (110) -
webrick
/ utils (60) -
win32
/ registry (160) -
win32
/ resolv (20) - zlib (86)
クラス
-
Win32
:: Resolv (20)
モジュール
- Abbrev (10)
- Base64 (60)
- Benchmark (50)
- BigMath (80)
- CMath (240)
- DRb (120)
-
DRb
:: DRbProtocol (10) - Digest (20)
-
ERB
:: DefMethod (10) -
ERB
:: Util (40) - Etc (210)
- Fiddle (60)
- FileTest (266)
- FileUtils (465)
- Find (30)
- Gem (110)
- JSON (110)
- Jacobian (30)
- Kconv (130)
- Kernel (1067)
- LUSolve (20)
- Marshal (40)
- Math (278)
- NKF (20)
- Newton (20)
- ObjectSpace (210)
- Open3 (180)
- OpenSSL (40)
-
OpenSSL
:: ASN1 (470) -
OpenSSL
:: PKCS5 (20) -
OpenSSL
:: Random (90) - PTY (40)
- Process (380)
-
Process
:: GID (110) -
Process
:: Sys (150) -
Process
:: UID (110) -
Profiler
_ _ (18) - Readline (10)
- Shellwords (40)
- Signal (40)
- Syslog (210)
-
Syslog
:: Macros (20) - Timeout (17)
-
WEBrick
:: AccessLog (30) -
WEBrick
:: HTMLUtils (10) -
WEBrick
:: HTTPAuth (20) -
WEBrick
:: HTTPStatus (70) -
WEBrick
:: HTTPUtils (110) -
WEBrick
:: Utils (60) -
Win32
:: Registry :: API (160) - Zlib (86)
キーワード
- Array (10)
- BMPString (20)
- BigDecimal (20)
- BitString (20)
- Boolean (20)
- CloseKey (10)
- Complex (20)
- CreateKey (10)
- DeleteKey (10)
- DeleteValue (10)
- E (10)
- EnumKey (10)
- EnumValue (10)
- Enumerated (20)
- Float (10)
- FlushKey (10)
- GeneralString (20)
- GeneralizedTime (20)
- GraphicString (20)
- Hash (10)
- IA5String (20)
- ISO64String (20)
- Integer (30)
-
LOG
_ MASK (10) -
LOG
_ UPTO (10) - Null (20)
- NumericString (20)
- ObjectId (20)
- OctetString (20)
- OpenKey (10)
- PI (10)
- PrintableString (20)
- QueryInfoKey (10)
- QueryValue (10)
- Rational (10)
- Sequence (20)
- Set (20)
- SetValue (10)
- String (10)
- T61String (20)
- URI (10)
- UTCTime (20)
- UTF8String (20)
- UniversalString (20)
- VideotexString (20)
-
_ _ callee _ _ (10) -
_ _ dir _ _ (10) -
_ _ method _ _ (10) -
_ id2ref (10) - ` (10)
- abbrev (10)
- abort (20)
- acos (16)
- acos! (6)
- acosh (16)
- acosh! (6)
-
add
_ protocol (10) - adler32 (13)
-
adler32
_ combine (10) - alert (10)
-
allocation
_ sourcefile (10) -
allocation
_ sourceline (10) - argv0 (10)
- asin (16)
- asin! (6)
- asinh (16)
- asinh! (6)
-
at
_ exit (10) - atan (26)
- atan! (6)
- atan2 (16)
- atan2! (6)
- atanh (16)
- atanh! (6)
- autoload (10)
- autoload? (10)
-
basic
_ auth (10) - benchmark (10)
- binding (10)
-
block
_ given? (10) - blockdev? (10)
- bm (10)
- bmbm (10)
- bubblebabble (10)
- callcc (10)
- caller (30)
-
caller
_ locations (20) - capture2 (10)
- capture2e (10)
- capture3 (10)
- catch (20)
- cbrt (16)
- cbrt! (6)
- cd (20)
-
change
_ privilege (20) - chardev? (10)
- chdir (20)
- check (10)
- chmod (10)
-
chmod
_ R (10) - chomp (10)
- chop (10)
- chown (10)
-
chown
_ R (10) -
clear
_ paths (10) -
client
_ error? (10) -
clock
_ gettime (10) - close (10)
- cmp (10)
-
compare
_ file (10) -
compare
_ stream (10) - config (10)
- confstr (10)
- copy (10)
-
copy
_ entry (10) -
copy
_ file (10) -
copy
_ stream (10) - cos (26)
- cos! (6)
- cosh (16)
- cosh! (6)
-
count
_ nodes (10) -
count
_ objects (10) -
count
_ objects _ size (10) -
count
_ tdata _ objects (10) - cp (10)
-
cp
_ lr (5) -
cp
_ r (10) - crc32 (13)
-
crc32
_ combine (10) -
crc
_ table (10) -
create
_ listeners (10) - crit (10)
-
current
_ server (10) - daemon (10)
- debug (20)
- debug= (10)
- decode (10)
- decode64 (10)
-
decode
_ all (10) -
def
_ erb _ method (10) -
define
_ finalizer (20) - deflate (10)
- dequote (10)
- detach (10)
- dfdxi (10)
- dir (10)
- directory? (10)
- dlopen (10)
- dlunwrap (10)
- dlwrap (10)
- dump (30)
-
each
_ object (40) - egd (10)
-
egd
_ bytes (10) - egid (10)
- egid= (10)
- eid (20)
- eid= (20)
- emerg (10)
- empty? (7)
- encode64 (10)
- endgrent (10)
- endpwent (10)
-
ensure
_ gem _ subdirectories (10) - erf (10)
- erfc (10)
- err (10)
- error? (10)
- errors (10)
- escape (30)
- escape8bit (10)
-
escape
_ path (10) - euid (10)
- euid= (10)
- eval (20)
- exec (40)
- executable? (10)
-
executable
_ real? (10) - exist? (10)
- exists? (9)
- exit (10)
- exit! (10)
- exp (26)
- exp! (6)
- facility (10)
- fail (30)
-
fast
_ generate (10) -
fast
_ unparse (10) - file? (10)
- find (20)
-
fips
_ mode= (10) - fork (20)
- format (20)
- free (10)
- frexp (10)
-
from
_ name (20) - front (10)
- gamma (10)
-
garbage
_ collect (10) - generate (10)
-
get
_ hosts _ path (10) -
get
_ resolv _ info (10) - getegid (10)
- geteuid (10)
- getgid (10)
- getgrent (10)
- getgrgid (10)
- getgrnam (10)
- getlogin (10)
- getpgid (10)
- getpgrp (10)
- getpriority (10)
- getpty (20)
- getpwent (10)
- getpwnam (10)
- getpwuid (10)
- getrlimit (10)
- gets (10)
- getservername (10)
- getsid (10)
- getuid (10)
- getwd (10)
- gid (10)
- gid= (10)
-
global
_ variables (10) -
grant
_ privilege (20) - group (20)
- groups (10)
- groups= (10)
- grpowned? (10)
- gsub (30)
- guess (20)
- h (10)
- here? (10)
- hexencode (10)
-
html
_ escape (10) - hypot (10)
- ident (10)
- identical? (20)
- inflate (10)
- info (10)
- info? (10)
- initgroups (10)
- install (10)
-
install
_ acl (10) -
install
_ id _ conv (10) - instance (10)
- isEqual (10)
- iseuc (10)
- isjis (10)
- issetugid (10)
- issjis (10)
- isutf8 (10)
- iterator? (10)
- jacobian (10)
- kconv (10)
- kill (10)
- lambda (16)
- ldexp (10)
- lgamma (10)
- link (10)
- list (10)
- ln (10)
-
ln
_ s (10) -
ln
_ sf (10) - load (30)
-
load
_ mime _ types (10) -
load
_ random _ file (10) -
local
_ variables (10) - log (52)
- log! (12)
- log10 (16)
- log10! (6)
- log2 (16)
- log2! (6)
- loop (20)
- ludecomp (10)
- lusolve (10)
- makedirs (10)
- malloc (10)
-
marshal
_ version (10) - mask (10)
- mask= (10)
- maxgroups (10)
- maxgroups= (10)
- measure (10)
-
memsize
_ of (10) -
memsize
_ of _ all (10) -
mime
_ type (10) - mkdir (10)
-
mkdir
_ p (10) - mkpath (10)
- move (10)
- mv (10)
- nkf (10)
- nlsolve (10)
- norm (10)
- notice (10)
- nprocessors (10)
- open (54)
- open! (10)
- opened? (10)
- owned? (10)
- p (10)
- packdw (10)
- packqw (10)
- parse (10)
- parse! (10)
-
parse
_ header (10) -
parse
_ range _ header (10) - passwd (20)
- path (10)
-
pbkdf2
_ hmac (10) -
pbkdf2
_ hmac _ sha1 (10) - pid (10)
- pipe? (10)
- pipeline (10)
-
pipeline
_ r (20) -
pipeline
_ rw (20) -
pipeline
_ start (20) -
pipeline
_ w (20) - popen2 (20)
- popen2e (20)
- popen3 (20)
- pp (10)
- ppid (10)
- prefix (10)
-
pretty
_ generate (10) -
pretty
_ unparse (10) -
primary
_ server (10) -
primary
_ server= (10) - print (10)
-
print
_ profile (6) - printf (20)
- proc (17)
-
proxy
_ basic _ auth (10) - prune (10)
-
pseudo
_ bytes (10) - putc (10)
- puts (10)
- pwd (10)
- quote (10)
- raise (30)
- rand (20)
-
random
_ add (10) -
random
_ bytes (10) -
random
_ string (10) -
re
_ exchange (20) -
re
_ exchangeable? (20) -
reachable
_ objects _ from (10) - readable? (10)
-
readable
_ real? (10) - readline (20)
- readlines (10)
- realloc (10)
- realtime (10)
-
reason
_ phrase (10) - redirect? (10)
- remove (10)
-
remove
_ dir (10) -
remove
_ entry (10) -
remove
_ entry _ secure (10) -
remove
_ file (10) - reopen (10)
- require (10)
-
require
_ relative (10) - restore (20)
- rid (20)
- rm (10)
-
rm
_ f (10) -
rm
_ r (10) -
rm
_ rf (10) - rmdir (10)
- rmtree (10)
- rsqrt (4)
- ruby (10)
-
safe
_ unlink (10) - seed (10)
- select (10)
-
server
_ error? (10) -
set
_ close _ on _ exec (10) -
set
_ home (10) -
set
_ non _ blocking (10) -
set
_ paths (10) -
set
_ trace _ func (10) - setegid (10)
- seteuid (10)
- setgid (10)
- setgid? (10)
- setgrent (10)
- setpgid (10)
- setpgrp (10)
- setpriority (10)
- setproctitle (10)
- setpwent (10)
- setregid (10)
- setresgid (10)
- setresuid (10)
- setreuid (10)
- setrgid (10)
- setrlimit (20)
- setruid (10)
- setsid (10)
- setuid (10)
- setuid? (10)
-
setup
_ params (10) - shellescape (10)
- shelljoin (10)
- shellsplit (10)
- shellwords (10)
-
sid
_ available? (20) - signame (10)
- sin (26)
- sin! (6)
- sinh (16)
- sinh! (6)
- size (10)
- size? (10)
- sleep (20)
- socket? (10)
-
source
_ index (10) - spawn (60)
-
split
_ header _ value (10) - sprintf (10)
- sqrt (30)
- sqrt! (6)
- srand (20)
-
start
_ profile (6) -
start
_ service (10) - status? (10)
- sticky? (10)
-
stop
_ profile (6) -
stop
_ service (10) -
strict
_ decode64 (10) -
strict
_ encode64 (10) - su (10)
- sub (20)
- success? (10)
- switch (40)
- symlink (10)
- symlink? (10)
- syscall (10)
- sysconf (10)
- sysconfdir (10)
- system (40)
- systmpdir (10)
- tan (16)
- tan! (6)
- tanh (16)
- tanh! (6)
- test (20)
- thread (10)
- throw (10)
- timeout (17)
- times (10)
- toeuc (10)
- tojis (10)
- tolocale (10)
- tosjis (10)
- touch (10)
- toutf16 (10)
- toutf32 (10)
- toutf8 (10)
-
trace
_ object _ allocations (10) -
trace
_ object _ allocations _ start (10) -
trace
_ object _ allocations _ stop (10) -
trace
_ var (30) - trap (40)
- traverse (10)
- u (10)
- uid (10)
- uid= (10)
- uname (10)
-
undefine
_ finalizer (10) - unescape (10)
- unpackdw (10)
- unpackqw (10)
- unparse (10)
-
untrace
_ var (10) - uptodate? (10)
- uri (10)
-
url
_ encode (10) -
urlsafe
_ decode64 (10) -
urlsafe
_ encode64 (10) - wait (10)
- wait2 (10)
- waitall (10)
- waitpid (10)
- waitpid2 (10)
- warn (10)
- warning (10)
-
win
_ platform? (10) -
world
_ readable? (10) -
world
_ writable? (10) - writable? (10)
-
writable
_ real? (10) -
write
_ random _ file (10) - zero? (10)
-
zlib
_ version (10)
検索結果
先頭5件
-
Abbrev
. # abbrev(words , pattern = nil) -> Hash (1.0) -
文字列の配列から一意に決まる短縮形を計算し、 短縮形をキー、元の文字列を値とするハッシュを返します。
文字列の配列から一意に決まる短縮形を計算し、
短縮形をキー、元の文字列を値とするハッシュを返します。
第二引数に正規表現を指定すると、words のうちそのパターンにマッチしたものから短縮形を計算します。
第二引数に文字列を指定すると、words のうちその文字列で始まるものから短縮形を計算します。
@param words 元となる文字列の配列。
@param pattern Regexp か String を指定します。
@return 短縮形をキー、元の文字列を値とするハッシュを返します。
require 'abbrev'
# words に同じ文字列が含まれ... -
Base64
. # decode64(str) -> String (1.0) -
与えられた文字列を Base64 デコードしたデータを返します。
与えられた文字列を Base64 デコードしたデータを返します。
このメソッドは 2045 に対応しています。
@param str Base64 デコードする文字列を指定します。
require 'base64'
str = 'VGhpcyBpcyBsaW5lIG9uZQpUaGlzIG' +
'lzIGxpbmUgdHdvClRoaXMgaXMgbGlu' +
'ZSB0aHJlZQpBbmQgc28gb24uLi4K'
puts Base64.decode64(str)
# This is line one
# T... -
Base64
. # encode64(bin) -> String (1.0) -
与えられたデータを Base64 エンコードした文字列を返します。
与えられたデータを Base64 エンコードした文字列を返します。
このメソッドは 2045 に対応しています。
エンコード後の文字で 60 文字ごとに改行を追加します。
@param bin Base64 エンコードするデータを指定します。
require 'base64'
Base64.encode64("Now is the time for all good coders\nto learn Ruby")
# => Tm93IGlzIHRoZSB0aW1lIGZvciBhbGwgZ29vZCBjb2RlcnMKdG8gbGVhcm4g
# ... -
Base64
. # strict _ decode64(str) -> String (1.0) -
与えられた文字列を Base64 デコードしたデータを返します。
与えられた文字列を Base64 デコードしたデータを返します。
このメソッドは 4648 に対応しています。
@param str Base64 デコードする文字列を指定します。
@raise ArgumentError 与えられた引数が Base64 エンコードされたデータとして正しい形式ではない場合に発生します。
例えば、アルファベットでない文字列や CR, LF などが含まれている場合にこの例外は発生します。 -
Base64
. # strict _ encode64(bin) -> String (1.0) -
与えられたデータを Base64 エンコードした文字列を返します。
与えられたデータを Base64 エンコードした文字列を返します。
このメソッドは 4648 に対応しています。
改行コードを追加することはありません。
@param bin Base64 エンコードするデータを指定します。 -
Base64
. # urlsafe _ decode64(str) -> String (1.0) -
与えられた文字列を Base64 デコードしたデータを返します。
与えられた文字列を Base64 デコードしたデータを返します。
このメソッドは 4648 の "Base 64 Encoding with URL and Filename Safe Alphabet" に対応しています。
"+" を "-" に "/" を "_" に置き換えます。
@param str Base64 デコードする文字列を指定します。
@raise ArgumentError 与えられた引数が Base64 エンコードされたデータとして正しい形式ではない場合に発生します。
例えば、アルファベットでない文字列や CR, LF などが含まれている場合にこの例... -
Base64
. # urlsafe _ encode64(bin , padding: true) -> String (1.0) -
与えられたデータを Base64 エンコードした文字列を返します。
与えられたデータを Base64 エンコードした文字列を返します。
このメソッドは 4648 の "Base 64 Encoding with URL and Filename Safe Alphabet" に対応しています。
"+" を "-" に "/" を "_" に置き換えます。
デフォルトでは戻り値は = によるパディングを含むことがあります。
パディングを含めたくない場合は、padding オプションに false を指定してください。
@param bin Base64 エンコードするデータを指定します。
@param padding false を指定した場合、 = によ... -
Benchmark
. # benchmark(caption = "" , label _ width = nil , fmtstr = nil , *labels) {|rep| . . . } -> [Benchmark :: Tms] (1.0) -
Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。
Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。
基本的には以下のように使います。
ブロックが Benchmark::Tms オブジェクトの配列を返した場合は、
それらの数値も追加の行に表示されます。
@param caption レポートの一行目に表示する文字列を指定します。
@param label_width ラベルの幅を指定します。
@param fmtstr フォーマット文字列を指定します。
この引数を省略すると Benchmark::FORMAT が使用されます。... -
Benchmark
. # bm(label _ width = 0 , *labels) {|rep| . . . } -> [Benchmark :: Tms] (1.0) -
Benchmark.#benchmark メソッドの引数を簡略化したものです。
Benchmark.#benchmark メソッドの引数を簡略化したものです。
Benchmark.#benchmark メソッドと同様に働きます。
@param label_width ラベルの幅を指定します。
@param labels ブロックが Benchmark::Tms オブジェクトの配列を返す場合に指定します。
//emlist[][ruby]{
require 'benchmark'
n = 50000
Benchmark.bm do |x|
x.report { for i in 1..n; a = "1"; end }
x.report { n.t... -
Benchmark
. # bmbm(width = 0) {|job| . . . } -> [Benchmark :: Tms] (1.0) -
Benchmark::Job オブジェクトを生成して、それを引数として与えられたブロックを 実行します。
Benchmark::Job オブジェクトを生成して、それを引数として与えられたブロックを
実行します。
ベンチマークの結果は GC の影響によって歪められてしまうことがあります。
このメソッドは与えられたブロックを二度実行する事によってこの影響を最小化します。
一回目は実行環境を安定化するためにリハーサルとして実行します。二回目は本番として
実行します。
二回目のブロック実行の前に GC.start を実行しますが、この実行時間は計測には
含まれません。しかし、実際にはこのメソッドを使用しても、GC などの影響を分離する
ことは保証されません。
@param width ラベルの幅を...