ライブラリ
- ビルトイン (2969)
- abbrev (12)
- base64 (72)
- benchmark (60)
- bigdecimal (48)
-
bigdecimal
/ jacobian (36) -
bigdecimal
/ ludcmp (24) -
bigdecimal
/ math (72) -
bigdecimal
/ newton (24) - cmath (240)
- continuation (12)
- digest (12)
-
digest
/ bubblebabble (12) - drb (156)
- erb (60)
- etc (252)
- fiddle (72)
- fileutils (559)
- find (36)
- json (156)
- kconv (156)
- mathn (8)
- nkf (24)
- objspace (132)
- open-uri (16)
- open3 (216)
- openssl (744)
- pp (4)
- profiler (18)
- pty (48)
- readline (12)
- rubygems (132)
- shellwords (48)
- syslog (276)
- timeout (21)
- uri (12)
-
webrick
/ accesslog (36) -
webrick
/ htmlutils (12) -
webrick
/ httpauth (24) -
webrick
/ httpstatus (84) -
webrick
/ httputils (132) -
webrick
/ utils (72) -
win32
/ registry (192) -
win32
/ resolv (24) - zlib (106)
クラス
-
Win32
:: Resolv (24)
モジュール
- Abbrev (12)
- Base64 (72)
- Benchmark (60)
- BigMath (96)
- CMath (240)
- DRb (144)
-
DRb
:: DRbProtocol (12) - Digest (24)
-
ERB
:: DefMethod (12) -
ERB
:: Util (48) - Etc (252)
- Fiddle (72)
- FileTest (318)
- FileUtils (559)
- Find (36)
- Gem (132)
- JSON (156)
- Jacobian (36)
- Kconv (156)
- Kernel (1277)
- LUSolve (24)
- Marshal (48)
- Math (332)
- NKF (24)
- Newton (24)
- ObjectSpace (252)
- Open3 (216)
- OpenSSL (48)
-
OpenSSL
:: ASN1 (564) -
OpenSSL
:: PKCS5 (24) -
OpenSSL
:: Random (108) - PTY (48)
- Process (458)
-
Process
:: GID (132) -
Process
:: Sys (180) -
Process
:: UID (132) -
Profiler
_ _ (18) - Readline (12)
- Shellwords (48)
- Signal (48)
- Syslog (252)
-
Syslog
:: Macros (24) - Timeout (21)
-
WEBrick
:: AccessLog (36) -
WEBrick
:: HTMLUtils (12) -
WEBrick
:: HTTPAuth (24) -
WEBrick
:: HTTPStatus (84) -
WEBrick
:: HTTPUtils (132) -
WEBrick
:: Utils (72) -
Win32
:: Registry :: API (192) - Zlib (106)
キーワード
- Array (12)
- BMPString (24)
- BigDecimal (24)
- BitString (24)
- Boolean (24)
- CloseKey (12)
- Complex (24)
- CreateKey (12)
- DeleteKey (12)
- DeleteValue (12)
- E (12)
- EnumKey (12)
- EnumValue (12)
- Enumerated (24)
- Float (12)
- FlushKey (12)
- GeneralString (24)
- GeneralizedTime (24)
- GraphicString (24)
- Hash (12)
- IA5String (24)
- ISO64String (24)
- Integer (36)
-
LOG
_ MASK (12) -
LOG
_ UPTO (12) - Null (24)
- NumericString (24)
- ObjectId (24)
- OctetString (24)
- OpenKey (12)
- PI (12)
- PrintableString (24)
- QueryInfoKey (12)
- QueryValue (12)
- Rational (12)
- Sequence (24)
- Set (24)
- SetValue (12)
- String (12)
- T61String (24)
- URI (12)
- UTCTime (24)
- UTF8String (24)
- UniversalString (24)
- VideotexString (24)
-
_ _ callee _ _ (12) -
_ _ dir _ _ (12) -
_ _ method _ _ (12) -
_ id2ref (12) - ` (12)
- abbrev (12)
- abort (24)
- acos (18)
- acos! (6)
- acosh (18)
- acosh! (6)
-
add
_ protocol (12) - adler32 (17)
-
adler32
_ combine (12) - alert (12)
-
allocation
_ sourcefile (12) -
allocation
_ sourceline (12) - argv0 (12)
- asin (18)
- asin! (6)
- asinh (18)
- asinh! (6)
-
at
_ exit (12) - atan (30)
- atan! (6)
- atan2 (18)
- atan2! (6)
- atanh (18)
- atanh! (6)
- autoload (12)
- autoload? (12)
-
basic
_ auth (12) - benchmark (12)
- binding (12)
-
block
_ given? (12) - blockdev? (12)
- bm (12)
- bmbm (12)
- bubblebabble (12)
- callcc (12)
- caller (36)
-
caller
_ locations (24) - capture2 (12)
- capture2e (12)
- capture3 (12)
- catch (24)
- cbrt (18)
- cbrt! (6)
- cd (24)
-
change
_ privilege (24) - chardev? (12)
- chdir (24)
- check (12)
- chmod (12)
-
chmod
_ R (12) - chomp (12)
- chop (12)
- chown (12)
-
chown
_ R (12) -
clear
_ paths (12) -
client
_ error? (12) -
clock
_ gettime (12) - close (12)
- cmp (12)
-
compare
_ file (12) -
compare
_ stream (12) - config (12)
- confstr (12)
- copy (12)
-
copy
_ entry (12) -
copy
_ file (12) -
copy
_ stream (12) - cos (30)
- cos! (6)
- cosh (18)
- cosh! (6)
-
count
_ nodes (12) -
count
_ objects (12) -
count
_ objects _ size (12) -
count
_ tdata _ objects (12) - cp (12)
-
cp
_ lr (7) -
cp
_ r (12) - crc32 (17)
-
crc32
_ combine (12) -
crc
_ table (12) -
create
_ listeners (12) - crit (12)
-
current
_ server (12) - daemon (12)
- debug (24)
- debug= (12)
- decode (12)
- decode64 (12)
-
decode
_ all (12) -
def
_ erb _ method (12) -
define
_ finalizer (24) - deflate (12)
- dequote (12)
- detach (12)
- dfdxi (12)
- dir (12)
- directory? (12)
- dlopen (12)
- dlunwrap (12)
- dlwrap (12)
- dump (36)
-
each
_ object (48) - egd (12)
-
egd
_ bytes (12) - egid (12)
- egid= (12)
- eid (24)
- eid= (24)
- emerg (12)
- empty? (9)
- encode64 (12)
- endgrent (12)
- endpwent (12)
-
ensure
_ gem _ subdirectories (12) - erf (12)
- erfc (12)
- err (12)
- error? (12)
- errors (12)
- escape (36)
- escape8bit (12)
-
escape
_ path (12) - euid (12)
- euid= (12)
- eval (24)
- exec (48)
- executable? (12)
-
executable
_ real? (12) - exist? (12)
- exists? (9)
- exit (12)
- exit! (12)
- exp (30)
- exp! (6)
- facility (12)
- fail (36)
-
fast
_ generate (12) -
fast
_ unparse (12) - file? (12)
- find (24)
-
fips
_ mode= (12) - fork (24)
- format (24)
- free (12)
- frexp (12)
-
from
_ name (24) - front (12)
- gamma (12)
-
garbage
_ collect (12) - generate (12)
-
get
_ hosts _ path (12) -
get
_ resolv _ info (12) - getegid (12)
- geteuid (12)
- getgid (12)
- getgrent (12)
- getgrgid (12)
- getgrnam (12)
- getlogin (12)
- getpgid (12)
- getpgrp (12)
- getpriority (12)
- getpty (24)
- getpwent (12)
- getpwnam (12)
- getpwuid (12)
- getrlimit (12)
- gets (12)
- getservername (12)
- getsid (12)
- getuid (12)
- getwd (12)
- gid (12)
- gid= (12)
-
global
_ variables (12) -
grant
_ privilege (24) - group (24)
- groups (12)
- groups= (12)
- grpowned? (12)
- gsub (36)
- guess (24)
- h (12)
- here? (12)
- hexencode (12)
-
html
_ escape (12) - hypot (12)
- ident (12)
- identical? (24)
- inflate (12)
- info (12)
- info? (12)
- initgroups (12)
- install (12)
-
install
_ acl (12) -
install
_ id _ conv (12) - instance (12)
- isEqual (12)
- iseuc (12)
- isjis (12)
- issetugid (12)
- issjis (12)
- isutf8 (12)
- iterator? (12)
- jacobian (12)
- kconv (12)
- kill (12)
- lambda (18)
- ldexp (12)
- lgamma (12)
- link (12)
- list (12)
- ln (12)
-
ln
_ s (12) -
ln
_ sf (12) - load (36)
-
load
_ file (12) -
load
_ file! (12) -
load
_ mime _ types (12) -
load
_ random _ file (12) -
local
_ variables (12) - log (60)
- log! (12)
- log10 (18)
- log10! (6)
- log2 (18)
- log2! (6)
- loop (24)
- ludecomp (12)
- lusolve (12)
- makedirs (12)
- malloc (12)
-
marshal
_ version (12) - mask (12)
- mask= (12)
- maxgroups (12)
- maxgroups= (12)
- measure (12)
-
memsize
_ of (12) -
memsize
_ of _ all (12) -
mime
_ type (12) - mkdir (12)
-
mkdir
_ p (12) - mkpath (12)
- move (12)
- mv (12)
- nkf (12)
- nlsolve (12)
- norm (12)
- notice (12)
- nprocessors (12)
- open (64)
- open! (12)
- opened? (12)
- owned? (12)
- p (12)
- packdw (12)
- packqw (12)
- parse (12)
- parse! (12)
-
parse
_ header (12) -
parse
_ range _ header (12) - passwd (24)
- path (12)
-
pbkdf2
_ hmac (12) -
pbkdf2
_ hmac _ sha1 (12) - pid (12)
- pipe? (12)
- pipeline (12)
-
pipeline
_ r (24) -
pipeline
_ rw (24) -
pipeline
_ start (24) -
pipeline
_ w (24) - popen2 (24)
- popen2e (24)
- popen3 (24)
- pp (12)
- ppid (12)
- prefix (12)
-
pretty
_ generate (12) -
pretty
_ unparse (12) -
primary
_ server (12) -
primary
_ server= (12) - print (12)
-
print
_ profile (6) - printf (24)
- proc (19)
-
proxy
_ basic _ auth (12) - prune (12)
-
pseudo
_ bytes (12) - putc (12)
- puts (12)
- pwd (12)
- quote (12)
- raise (36)
- rand (24)
-
random
_ add (12) -
random
_ bytes (12) -
random
_ string (12) -
re
_ exchange (24) -
re
_ exchangeable? (24) -
reachable
_ objects _ from (12) - readable? (12)
-
readable
_ real? (12) - readline (24)
- readlines (12)
- realloc (12)
- realtime (12)
-
reason
_ phrase (12) - redirect? (12)
- remove (12)
-
remove
_ dir (12) -
remove
_ entry (12) -
remove
_ entry _ secure (12) -
remove
_ file (12) - reopen (12)
- require (12)
-
require
_ relative (12) - restore (24)
- rid (24)
- rm (12)
-
rm
_ f (12) -
rm
_ r (12) -
rm
_ rf (12) - rmdir (12)
- rmtree (12)
- rsqrt (4)
- ruby (12)
-
safe
_ unlink (12) - seed (12)
- select (12)
-
server
_ error? (12) -
set
_ close _ on _ exec (12) -
set
_ home (12) -
set
_ non _ blocking (12) -
set
_ paths (12) -
set
_ trace _ func (12) - setegid (12)
- seteuid (12)
- setgid (12)
- setgid? (12)
- setgrent (12)
- setpgid (12)
- setpgrp (12)
- setpriority (12)
- setproctitle (12)
- setpwent (12)
- setregid (12)
- setresgid (12)
- setresuid (12)
- setreuid (12)
- setrgid (12)
- setrlimit (24)
- setruid (12)
- setsid (12)
- setuid (12)
- setuid? (12)
-
setup
_ params (12) - shellescape (12)
- shelljoin (12)
- shellsplit (12)
- shellwords (12)
-
sid
_ available? (24) - signame (12)
- sin (30)
- sin! (6)
- sinh (18)
- sinh! (6)
- size (12)
- size? (12)
- sleep (24)
- socket? (12)
-
source
_ index (12) - spawn (72)
-
split
_ header _ value (12) - sprintf (12)
- sqrt (34)
- sqrt! (6)
- srand (24)
-
start
_ profile (6) -
start
_ service (12) - status? (12)
- sticky? (12)
-
stop
_ profile (6) -
stop
_ service (12) -
strict
_ decode64 (12) -
strict
_ encode64 (12) - su (12)
- sub (24)
- success? (12)
- switch (48)
- symlink (12)
- symlink? (12)
- syscall (12)
- sysconf (12)
- sysconfdir (12)
- system (48)
- systmpdir (12)
- tan (18)
- tan! (6)
- tanh (18)
- tanh! (6)
- test (24)
- thread (12)
- throw (12)
- timeout (21)
- times (12)
- toeuc (12)
- tojis (12)
- tolocale (12)
- tosjis (12)
- touch (12)
- toutf16 (12)
- toutf32 (12)
- toutf8 (12)
-
trace
_ object _ allocations (12) -
trace
_ object _ allocations _ start (12) -
trace
_ object _ allocations _ stop (12) -
trace
_ var (36) - trap (48)
- traverse (12)
- u (12)
- uid (12)
- uid= (12)
- uname (12)
-
undefine
_ finalizer (12) - unescape (12)
- unpackdw (12)
- unpackqw (12)
- unparse (12)
-
untrace
_ var (12) - uptodate? (12)
- uri (12)
-
url
_ encode (12) -
urlsafe
_ decode64 (12) -
urlsafe
_ encode64 (12) - wait (12)
- wait2 (12)
- waitall (12)
- waitpid (12)
- waitpid2 (12)
- warmup (2)
- warn (12)
- warning (12)
-
win
_ platform? (12) -
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) -
write
_ random _ file (12) - zero? (12)
-
zlib
_ version (12)
検索結果
先頭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...