ライブラリ
- ビルトイン (3225)
- abbrev (13)
- base64 (78)
- benchmark (65)
- bigdecimal (52)
-
bigdecimal
/ jacobian (39) -
bigdecimal
/ ludcmp (26) -
bigdecimal
/ math (78) -
bigdecimal
/ newton (26) - cmath (240)
- continuation (13)
- digest (13)
-
digest
/ bubblebabble (13) - drb (169)
- erb (65)
- etc (273)
- fiddle (78)
- fileutils (628)
- find (39)
- json (171)
- kconv (169)
- mathn (8)
- nkf (26)
- objspace (303)
- open-uri (14)
- open3 (234)
- openssl (933)
- pathname (13)
- prism (58)
- profiler (18)
- pty (52)
- readline (13)
- rubygems (725)
- shellwords (52)
- syslog (299)
- timeout (26)
- uri (13)
-
win32
/ registry (208) -
win32
/ resolv (26) - zlib (156)
クラス
-
Win32
:: Resolv (26)
モジュール
- Abbrev (13)
- Base64 (78)
- Benchmark (65)
- BigMath (104)
- CMath (240)
- DRb (156)
-
DRb
:: DRbProtocol (13) - Digest (26)
-
ERB
:: DefMethod (13) -
ERB
:: Util (52) - Etc (273)
- Fiddle (78)
- FileTest (347)
- FileUtils (628)
- Find (39)
- Gem (725)
- JSON (171)
- Jacobian (39)
- Kconv (169)
- Kernel (1379)
- LUSolve (26)
- Marshal (52)
- Math (361)
- NKF (26)
- Newton (26)
- ObjectSpace (433)
- Open3 (234)
- OpenSSL (104)
-
OpenSSL
:: ASN1 (624) -
OpenSSL
:: PKCS5 (26) -
OpenSSL
:: PKey (62) -
OpenSSL
:: Random (117) - PTY (52)
- Prism (58)
- Process (510)
-
Process
:: GID (143) -
Process
:: Sys (195) -
Process
:: UID (143) -
Profiler
_ _ (18) - Readline (13)
- Shellwords (52)
- Signal (52)
- Syslog (273)
-
Syslog
:: Macros (26) - Timeout (26)
-
Win32
:: Registry :: API (208) - Zlib (156)
キーワード
- Array (13)
- BMPString (26)
- BigDecimal (26)
- BitString (26)
- Boolean (26)
- CloseKey (13)
- Complex (26)
- CreateKey (13)
- DeleteKey (13)
- DeleteValue (13)
- Digest (13)
- E (13)
- EndOfContent (13)
- EnumKey (13)
- EnumValue (13)
- Enumerated (26)
- Float (13)
- FlushKey (13)
- GeneralString (26)
- GeneralizedTime (26)
- GraphicString (26)
- Hash (13)
- IA5String (26)
- ISO64String (26)
- Integer (39)
-
LOG
_ MASK (13) -
LOG
_ UPTO (13) - Null (26)
- NumericString (26)
- ObjectId (26)
- OctetString (26)
- OpenKey (13)
- PI (13)
- Pathname (13)
- PrintableString (26)
- QueryInfoKey (13)
- QueryValue (13)
- Rational (13)
- Sequence (26)
- Set (26)
- SetValue (13)
- String (13)
- T61String (26)
- URI (13)
- UTCTime (26)
- UTF8String (26)
- UniversalString (26)
- VideotexString (26)
-
_ _ callee _ _ (13) -
_ _ dir _ _ (13) -
_ _ method _ _ (13) -
_ id2ref (13) - ` (13)
- abbrev (13)
- abort (26)
- acos (19)
- acos! (6)
- acosh (19)
- acosh! (6)
-
add
_ protocol (13) - adler32 (26)
-
adler32
_ combine (13) - alert (13)
-
allocation
_ class _ path (13) -
allocation
_ generation (13) -
allocation
_ method _ id (13) -
allocation
_ sourcefile (13) -
allocation
_ sourceline (13) - argv0 (13)
- asin (19)
- asin! (6)
- asinh (19)
- asinh! (6)
-
at
_ exit (13) - atan (32)
- atan! (6)
- atan2 (19)
- atan2! (6)
- atanh (19)
- atanh! (6)
- autoload (13)
- autoload? (13)
- benchmark (13)
-
bin
_ path (13) - binding (13)
- bindir (13)
-
block
_ given? (13) - blockdev? (13)
- bm (13)
- bmbm (13)
- bubblebabble (13)
- callcc (13)
- caller (39)
-
caller
_ locations (26) - capture2 (13)
- capture2e (13)
- capture3 (13)
- catch (26)
- cbrt (19)
- cbrt! (6)
- cd (26)
-
change
_ privilege (26) - chardev? (13)
- chdir (26)
- check (13)
- chmod (13)
-
chmod
_ R (13) - chomp (13)
- chop (13)
- chown (13)
-
chown
_ R (13) -
clear
_ paths (13) -
clock
_ getres (13) -
clock
_ gettime (13) - close (13)
- cmp (13)
-
compare
_ file (13) -
compare
_ stream (13) - config (13)
- configuration (13)
- configuration= (13)
- confstr (13)
- copy (13)
-
copy
_ entry (13) -
copy
_ file (13) -
copy
_ stream (13) - cos (32)
- cos! (6)
- cosh (19)
- cosh! (6)
-
count
_ imemo _ objects (13) -
count
_ nodes (13) -
count
_ objects (13) -
count
_ objects _ size (13) -
count
_ symbols (13) -
count
_ tdata _ objects (13) - cp (13)
-
cp
_ lr (13) -
cp
_ r (13) - crc32 (26)
-
crc32
_ combine (13) -
crc
_ table (13) - crit (13)
-
current
_ server (13) - daemon (13)
- datadir (10)
- debug (26)
- debug= (13)
- decode (13)
- decode64 (13)
-
decode
_ all (13) -
def
_ erb _ method (13) -
define
_ finalizer (26) - deflate (13)
- detach (13)
- dfdxi (13)
- dir (13)
- directory? (13)
-
discover
_ gems _ on _ require (3) -
discover
_ gems _ on _ require= (3) - dlopen (13)
- dlunwrap (13)
- dlwrap (13)
-
done
_ installing (13) -
done
_ installing _ hooks (13) - dump (55)
-
dump
_ all (13) -
dump
_ file (3) -
dump
_ shapes (4) -
each
_ object (52) - egd (13)
-
egd
_ bytes (13) - egid (13)
- egid= (13)
- eid (26)
- eid= (26)
- emerg (13)
- empty? (13)
- encode64 (13)
- endgrent (13)
- endpwent (13)
-
ensure
_ gem _ subdirectories (13) - erf (13)
- erfc (13)
- err (13)
- errors (13)
- euid (13)
- euid= (13)
- eval (26)
- exec (52)
- executable? (13)
-
executable
_ real? (13) - exist? (13)
- exists? (9)
- exit (13)
- exit! (13)
- exp (32)
- exp! (6)
- expm1 (1)
- facility (13)
- fail (39)
-
fast
_ generate (13) -
fast
_ unparse (13) - file? (13)
- find (26)
-
find
_ files (13) -
find
_ latest _ files (13) -
fips
_ mode (13) -
fips
_ mode= (13) -
fixed
_ length _ secure _ compare (13) - fork (26)
- format (13)
- free (13)
-
freebsd
_ platform? (2) - frexp (13)
-
from
_ name (26) - front (13)
- gamma (13)
-
garbage
_ collect (13) - generate (13)
-
generate
_ key (20) -
generate
_ parameters (10) -
get
_ hosts _ path (13) -
get
_ resolv _ info (13) - getegid (13)
- geteuid (13)
- getgid (13)
- getgrent (13)
- getgrgid (13)
- getgrnam (13)
- getlogin (13)
- getpgid (13)
- getpgrp (13)
- getpriority (13)
- getpty (26)
- getpwent (13)
- getpwnam (13)
- getpwuid (13)
- getrlimit (13)
- gets (13)
- getsid (13)
- getuid (13)
- getwd (13)
- gid (13)
- gid= (13)
-
global
_ variables (13) -
grant
_ privilege (26) - group (26)
- groups (13)
- groups= (13)
- grpowned? (13)
- gsub (39)
- guess (26)
- gunzip (13)
- gzip (13)
- h (13)
- here? (13)
- hexencode (13)
- host (13)
- host= (13)
-
html
_ escape (13) - hypot (13)
- ident (13)
- identical? (26)
- inflate (13)
- info (13)
- initgroups (13)
- install (26)
-
install
_ acl (13) -
install
_ id _ conv (13) - instance (13)
-
internal
_ class _ of (13) -
internal
_ super _ of (13) - isEqual (13)
- iseuc (13)
- isjis (13)
- issetugid (13)
- issjis (13)
- isutf8 (13)
- iterator? (13)
- jacobian (13)
-
java
_ platform? (13) - kconv (13)
- kill (13)
- lambda (13)
-
latest
_ spec _ for (13) -
latest
_ version _ for (13) - ldexp (13)
- lex (3)
-
lex
_ compat (3) -
lex
_ file (3) -
lex
_ ripper (3) - lgamma (13)
- link (13)
-
link
_ entry (13) - list (13)
- ln (13)
-
ln
_ s (13) -
ln
_ sf (13) -
ln
_ sr (4) - load (42)
-
load
_ file (13) -
load
_ file! (13) -
load
_ random _ file (13) -
loaded
_ specs (13) -
local
_ variables (13) - log (64)
- log! (12)
- log10 (19)
- log10! (6)
- log1p (1)
- log2 (19)
- log2! (6)
- loop (26)
- ludecomp (13)
- lusolve (13)
- makedirs (13)
- malloc (13)
-
marshal
_ version (13) - mask (13)
- mask= (13)
- maxgroups (13)
- maxgroups= (13)
- measure (13)
-
memsize
_ of (13) -
memsize
_ of _ all (13) - mkdir (13)
-
mkdir
_ p (13) - mkpath (13)
- move (13)
- mv (13)
- needs (13)
-
new
_ raw _ private _ key (3) -
new
_ raw _ public _ key (3) - nkf (13)
- nlsolve (13)
- norm (13)
- notice (13)
- nprocessors (13)
- open (66)
- open! (13)
- opened? (13)
- owned? (13)
- p (13)
- packdw (13)
- packqw (13)
- parse (16)
- parse! (13)
-
parse
_ comments (3) -
parse
_ failure? (3) -
parse
_ file (3) -
parse
_ file _ comments (3) -
parse
_ file _ failure? (3) -
parse
_ file _ success? (3) -
parse
_ lex (3) -
parse
_ lex _ file (3) -
parse
_ stream (2) -
parse
_ success? (3) - passwd (26)
- path (13)
- paths (13)
- paths= (13)
-
pbkdf2
_ hmac (13) -
pbkdf2
_ hmac _ sha1 (13) - pid (13)
- pipe? (13)
- pipeline (13)
-
pipeline
_ r (26) -
pipeline
_ rw (26) -
pipeline
_ start (26) -
pipeline
_ w (26) - platforms (13)
- platforms= (13)
- plugindir (13)
- popen2 (26)
- popen2e (26)
- popen3 (26)
-
post
_ build (13) -
post
_ build _ hooks (13) -
post
_ install (13) -
post
_ install _ hooks (13) -
post
_ reset (13) -
post
_ reset _ hooks (13) -
post
_ uninstall (13) -
post
_ uninstall _ hooks (13) - pp (13)
- ppid (13)
-
pre
_ install (13) -
pre
_ install _ hooks (13) -
pre
_ reset (13) -
pre
_ reset _ hooks (13) -
pre
_ uninstall (13) -
pre
_ uninstall _ hooks (13) - prefix (13)
-
pretty
_ generate (13) -
pretty
_ unparse (13) -
primary
_ server (13) -
primary
_ server= (13) - print (13)
-
print
_ profile (6) - printf (26)
- proc (13)
- profile (2)
-
profile
_ file (2) - prune (13)
-
pseudo
_ bytes (13) - putc (13)
- puts (13)
- pwd (13)
- raise (39)
- rand (26)
-
random
_ add (13) -
random
_ bytes (13) -
re
_ exchange (26) -
re
_ exchangeable? (26) -
reachable
_ objects _ from (13) -
reachable
_ objects _ from _ root (13) - read (26)
- readable? (13)
-
readable
_ real? (13) - readline (26)
- readlines (13)
- realloc (13)
- realtime (13)
- refresh (13)
- remove (13)
-
remove
_ dir (13) -
remove
_ entry (13) -
remove
_ entry _ secure (13) -
remove
_ file (13) - reopen (13)
- require (13)
-
require
_ relative (13) - restore (26)
- rid (26)
- rm (13)
-
rm
_ f (13) -
rm
_ r (13) -
rm
_ rf (13) - rmdir (13)
- rmtree (13)
- rsqrt (4)
- ruby (13)
-
ruby
_ api _ version (13) -
ruby
_ version (13) -
rubygems
_ version (13) -
safe
_ unlink (13) - scope (1)
-
secure
_ compare (13) - seed (13)
- select (13)
-
set
_ trace _ func (13) - setegid (13)
- seteuid (13)
- setgid (13)
- setgid? (13)
- setgrent (13)
- setpgid (13)
- setpgrp (13)
- setpriority (13)
- setproctitle (13)
- setpwent (13)
- setregid (13)
- setresgid (13)
- setresuid (13)
- setreuid (13)
- setrgid (13)
- setrlimit (26)
- setruid (13)
- setsid (13)
- setuid (13)
- setuid? (13)
- shellescape (13)
- shelljoin (13)
- shellsplit (13)
- shellwords (13)
-
sid
_ available? (26) - signame (13)
- sin (32)
- sin! (6)
- sinh (19)
- sinh! (6)
- size (13)
- size? (13)
- sleep (26)
- socket? (13)
-
solaris
_ platform? (5) -
source
_ date _ epoch (13) - sources (13)
- sources= (13)
- spawn (78)
-
spec
_ cache _ dir (13) - sprintf (13)
- sqrt (36)
- sqrt! (6)
- srand (26)
-
start
_ profile (6) -
start
_ service (13) - status? (13)
- sticky? (13)
-
stop
_ profile (6) -
stop
_ service (13) -
strict
_ decode64 (13) -
strict
_ encode64 (13) - sub (26)
- suffixes (13)
- switch (52)
- symlink (13)
- symlink? (13)
- syscall (13)
- sysconf (13)
- sysconfdir (13)
- system (52)
- systmpdir (13)
- tan (19)
- tan! (6)
- tanh (19)
- tanh! (6)
- test (26)
- thread (13)
- throw (13)
- timeout (26)
- times (13)
- toeuc (13)
- tojis (13)
- tolocale (13)
- tosjis (13)
- touch (13)
- toutf16 (13)
- toutf32 (13)
- toutf8 (13)
-
trace
_ object _ allocations (13) -
trace
_ object _ allocations _ clear (13) -
trace
_ object _ allocations _ debug _ start (13) -
trace
_ object _ allocations _ start (13) -
trace
_ object _ allocations _ stop (13) -
trace
_ var (39) - trap (52)
- traverse (13)
- u (13)
- ui (13)
- uid (13)
- uid= (13)
- uname (13)
-
undefine
_ finalizer (13) - unpackdw (13)
- unpackqw (13)
- unparse (13)
-
unsafe
_ load (2) -
untrace
_ var (13) - uptodate? (13)
- uri (13)
-
url
_ encode (13) -
urlsafe
_ decode64 (13) -
urlsafe
_ encode64 (13) -
use
_ gemdeps (13) - wait (13)
- wait2 (13)
- waitall (13)
- waitpid (13)
- waitpid2 (13)
- warmup (3)
- warn (13)
- warning (13)
-
win
_ platform? (13) -
world
_ readable? (13) -
world
_ writable? (13) - writable? (13)
-
writable
_ real? (13) -
write
_ random _ file (13) - zero? (13)
-
zlib
_ version (13)
検索結果
先頭5件
-
Abbrev
. # abbrev(words , pattern = nil) -> Hash (1.0) -
文字列の配列から一意に決まる短縮形を計算し、短縮形をキー、元の文字列を値とするハッシュを返します。
文字列の配列から一意に決まる短縮形を計算し、短縮形をキー、元の文字列を値とするハッシュを返します。
第二引数に正規表現を指定すると、words のうちそのパターンにマッチしたものから短縮形を計算します。
第二引数に文字列を指定すると、words のうちその文字列で始まるものから短縮形を計算します。
- **param** `words` -- 元となる文字列の配列。
- **param** `pattern` -- [c:Regexp] か [c:String] を指定します。
- **return** -- 短縮形をキー、元の文字列を値とするハッシュを返します。
```ruby... -
Base64
. # decode64(str) -> String (1.0) -
与えられた文字列を Base64 デコードしたデータを返します。
与えられた文字列を Base64 デコードしたデータを返します。
このメソッドは [RFC:2045] に対応しています。
- **param** `str` -- Base64 デコードする文字列を指定します。
```ruby
require 'base64'
str = 'VGhpcyBpcyBsaW5lIG9uZQpUaGlzIG' +
'lzIGxpbmUgdHdvClRoaXMgaXMgbGlu' +
'ZSB0aHJlZQpBbmQgc28gb24uLi4K'
puts Base64.decode64(str)
# This is line one... -
Base64
. # encode64(bin) -> String (1.0) -
与えられたデータを Base64 エンコードした文字列を返します。
与えられたデータを Base64 エンコードした文字列を返します。
このメソッドは [RFC:2045] に対応しています。
エンコード後の文字で 60 文字ごとに改行を追加します。
- **param** `bin` -- Base64 エンコードするデータを指定します。
```ruby
require 'base64'
Base64.encode64("Now is the time for all good coders\nto learn Ruby")
# => Tm93IGlzIHRoZSB0aW1lIGZvciBhbGwgZ29vZCBjb2RlcnMKdG8gbGVhc... -
Base64
. # strict _ decode64(str) -> String (1.0) -
与えられた文字列を Base64 デコードしたデータを返します。
与えられた文字列を Base64 デコードしたデータを返します。
このメソッドは [RFC:4648] に対応しています。
- **param** `str` -- Base64 デコードする文字列を指定します。
- **raise** `ArgumentError` -- 与えられた引数が Base64 エンコードされたデータとして正しい形式ではない場合に発生します。
例えば、アルファベットでない文字列や CR, LF などが含まれている場合にこの例外は発生します。 -
Base64
. # strict _ encode64(bin) -> String (1.0) -
与えられたデータを Base64 エンコードした文字列を返します。
与えられたデータを Base64 エンコードした文字列を返します。
このメソッドは [RFC:4648] に対応しています。
改行コードを追加することはありません。
- **param** `bin` -- Base64 エンコードするデータを指定します。 -
Base64
. # urlsafe _ decode64(str) -> String (1.0) -
与えられた文字列を Base64 デコードしたデータを返します。
与えられた文字列を Base64 デコードしたデータを返します。
このメソッドは [RFC:4648] の "Base 64 Encoding with URL and Filename Safe Alphabet" に対応しています。
"-" を "+" に "_" を "/" に置き換えます。
- **param** `str` -- Base64 デコードする文字列を指定します。
- **raise** `ArgumentError` -- 与えられた引数が Base64 エンコードされたデータとして正しい形式ではない場合に発生します。
例えば、アルファベットでない... -
Base64
. # urlsafe _ encode64(bin , padding: true) -> String (1.0) -
与えられたデータを Base64 エンコードした文字列を返します。
与えられたデータを Base64 エンコードした文字列を返します。
このメソッドは [RFC:4648] の "Base 64 Encoding with URL and Filename Safe Alphabet" に対応しています。
"+" を "-" に "/" を "_" に置き換えます。
デフォルトでは戻り値は = によるパディングを含むことがあります。
パディングを含めたくない場合は、padding オプションに false を指定してください。
- **param** `bin` -- Base64 エンコードするデータを指定します。
- **param** `padd... -
Benchmark
. # benchmark(caption = "" , label _ width = nil , fmtstr = nil , *labels) {|rep| . . . } -> [Benchmark :: Tms] (1.0) -
[c:Benchmark::Report] オブジェクトを生成し、それを引数として与えられたブロックを実行します。
[c:Benchmark::Report] オブジェクトを生成し、それを引数として与えられたブロックを実行します。
基本的には以下のように使います。
ブロックが [c:Benchmark::Tms] オブジェクトの配列を返した場合は、それらの数値も追加の行に表示されます。
- **param** `caption` -- レポートの一行目に表示する文字列を指定します。
- **param** `label_width` -- ラベルの幅を指定します。
- **param** `fmtstr` -- フォーマット文字列を指定します。
...
