
![条件を削除 [x]](/images/drop-condition-icon.png)
ライブラリ
- ビルトイン (1715)
- abbrev (7)
- base64 (42)
- benchmark (35)
- bigdecimal (28)
-
bigdecimal
/ jacobian (21) -
bigdecimal
/ ludcmp (14) -
bigdecimal
/ math (42) -
bigdecimal
/ newton (14) - cmath (280)
- continuation (7)
- curses (138)
- digest (7)
-
digest
/ bubblebabble (7) - dl (24)
- drb (91)
- erb (35)
- etc (135)
- fiddle (36)
- fileutils (322)
- find (21)
- json (77)
- kconv (91)
- mathn (12)
- nkf (14)
- objspace (41)
- open-uri (14)
- open3 (126)
- openssl (434)
- pp (6)
- profiler (21)
- pty (28)
- readline (7)
- rubygems (70)
- shellwords (28)
- syck (1)
- syslog (161)
- timeout (9)
-
tk
/ grid (70) -
tk
/ mngfocus (15) -
tk
/ optiondb (50) -
tk
/ pack (30) -
tk
/ place (35) - uri (7)
-
webrick
/ accesslog (21) -
webrick
/ htmlutils (7) -
webrick
/ httpauth (14) -
webrick
/ httpstatus (49) -
webrick
/ httputils (77) -
webrick
/ utils (42) -
win32
/ registry (112) -
win32
/ resolv (14) - zlib (56)
クラス
-
DL
:: CFunc (3) -
Win32
:: Resolv (14)
モジュール
- Abbrev (7)
- Base64 (42)
- Benchmark (35)
- BigMath (56)
- CMath (280)
- Curses (138)
- DL (21)
- DRb (84)
-
DRb
:: DRbProtocol (7) - Digest (14)
-
ERB
:: DefMethod (7) -
ERB
:: Util (28) - Etc (135)
- Fiddle (36)
- FileTest (184)
- FileUtils (322)
- Find (21)
- Gem (70)
- JSON (77)
- Jacobian (21)
- Kconv (91)
- Kernel (749)
- LUSolve (14)
- Marshal (28)
- Math (201)
- NKF (14)
- Newton (14)
- ObjectSpace (111)
- Open3 (126)
- OpenSSL (28)
-
OpenSSL
:: ASN1 (329) -
OpenSSL
:: PKCS5 (14) -
OpenSSL
:: Random (63) - PTY (28)
- Process (259)
-
Process
:: GID (76) -
Process
:: Sys (105) -
Process
:: UID (76) -
Profiler
_ _ (21) - Readline (7)
- Shellwords (28)
- Signal (27)
- Syck (1)
- Syslog (147)
-
Syslog
:: Constants (2) -
Syslog
:: Macros (12) - Timeout (9)
- TkGrid (70)
- TkManageFocus (15)
- TkOptionDB (50)
- TkPack (30)
- TkPlace (35)
-
WEBrick
:: AccessLog (21) -
WEBrick
:: HTMLUtils (7) -
WEBrick
:: HTTPAuth (14) -
WEBrick
:: HTTPStatus (49) -
WEBrick
:: HTTPUtils (77) -
WEBrick
:: Utils (42) -
Win32
:: Registry :: API (112) - Zlib (56)
キーワード
- Array (7)
- BMPString (14)
- BigDecimal (14)
- BitString (14)
- Boolean (14)
- CloseKey (7)
- Complex (14)
- CreateKey (7)
- DeleteKey (7)
- DeleteValue (7)
- E (7)
- ESCDELAY (2)
- ESCDELAY= (2)
- EnumKey (7)
- EnumValue (7)
- Enumerated (14)
- Float (7)
- FlushKey (7)
- GeneralString (14)
- GeneralizedTime (14)
- GraphicString (14)
- Hash (7)
- IA5String (14)
- ISO64String (14)
- Integer (21)
-
LOG
_ MASK (7) -
LOG
_ UPTO (7) - Null (14)
- NumericString (14)
- ObjectId (14)
- OctetString (14)
- OpenKey (7)
- PI (7)
- PrintableString (14)
- QueryInfoKey (7)
- QueryValue (7)
- Rational (7)
- Sequence (14)
- Set (14)
- SetValue (7)
- String (7)
- T61String (14)
- TABSIZE (2)
- TABSIZE= (2)
- URI (7)
- UTCTime (14)
- UTF8String (14)
- UniversalString (14)
- VideotexString (14)
-
_ _ callee _ _ (7) -
_ _ dir _ _ (7) -
_ _ method _ _ (7) -
_ id2ref (7) - ` (7)
- abbrev (7)
- abort (7)
- acos (14)
- acos! (7)
- acosh (14)
- acosh! (7)
- add (5)
-
add
_ protocol (7) - addch (2)
- addstr (2)
- adler32 (7)
-
adler32
_ combine (7) - alert (7)
- argv0 (5)
- asin (14)
- asin! (7)
- asinh (14)
- asinh! (7)
-
at
_ exit (7) - atan (21)
- atan! (7)
- atan2 (14)
- atan2! (7)
- atanh (14)
- atanh! (7)
- attroff (2)
- attron (2)
- attrset (2)
- autoload (7)
- autoload? (7)
-
basic
_ auth (7) - bbox (5)
- beep (2)
- benchmark (7)
- binding (7)
- bkgd (2)
- bkgdset (2)
-
block
_ given? (7) - blockdev? (7)
- bm (7)
- bmbm (7)
- bubblebabble (7)
- callcc (7)
- caller (21)
-
caller
_ locations (14) -
can
_ change _ color? (2) - capture2 (7)
- capture2e (7)
- capture3 (7)
- catch (14)
- cbreak (2)
- cbrt (14)
- cbrt! (7)
- cd (14)
-
change
_ privilege (14) - chardev? (7)
- chdir (14)
- check (7)
- chmod (7)
-
chmod
_ R (7) - chomp (7)
- chop (7)
- chown (7)
-
chown
_ R (7) - clear (7)
-
clear
_ paths (7) -
client
_ error? (7) -
clock
_ gettime (5) - close (7)
-
close
_ screen (2) - closed? (2)
- clrtoeol (2)
- cmp (7)
-
color
_ content (2) -
color
_ pair (2) -
color
_ pairs (2) - colors (2)
- cols (2)
- columnconfiginfo (5)
- columnconfigure (5)
-
compare
_ file (7) -
compare
_ stream (7) - compile (1)
- config (7)
- configinfo (5)
- configure (15)
- confstr (4)
- copy (7)
-
copy
_ entry (7) -
copy
_ file (7) -
copy
_ stream (7) - cos (21)
- cos! (7)
- cosh (14)
- cosh! (7)
-
count
_ nodes (7) -
count
_ objects (7) -
count
_ objects _ size (7) -
count
_ tdata _ objects (7) - cp (7)
-
cp
_ r (7) - crc32 (7)
-
crc32
_ combine (7) -
crc
_ table (7) -
create
_ listeners (7) - crit (7)
- crmode (2)
-
current
_ configinfo (5) -
current
_ server (7) -
curs
_ set (2) - daemon (7)
- debug (14)
- debug= (7)
- decode (7)
- decode64 (7)
-
decode
_ all (7) -
def
_ erb _ method (7) -
def
_ prog _ mode (2) -
define
_ finalizer (14) - deflate (7)
- delch (2)
- deleteln (2)
- dequote (7)
- detach (7)
- dfdxi (7)
- dir (7)
- directory? (7)
- dlopen (12)
- dlunwrap (9)
- dlwrap (9)
- doupdate (2)
- dump (21)
-
each
_ object (28) - echo (2)
- egd (7)
-
egd
_ bytes (7) - egid (7)
- egid= (7)
- eid (14)
- eid= (14)
- emerg (7)
- empty? (2)
- encode64 (7)
- endgrent (7)
- endpwent (7)
-
ensure
_ gem _ subdirectories (7) - erf (7)
- erfc (7)
- err (7)
- error? (7)
- errors (7)
- escape (21)
- escape8bit (7)
-
escape
_ path (7) - euid (7)
- euid= (7)
- eval (14)
-
eval
_ under _ random _ base (5) - exec (28)
- executable? (7)
-
executable
_ real? (7) - exist? (7)
- exists? (7)
- exit (7)
- exit! (7)
- exp (21)
- exp! (7)
- facility (7)
- fail (21)
-
fast
_ generate (7) -
fast
_ unparse (7) - file? (7)
- find (14)
-
fips
_ mode= (7) - flash (2)
- followsMouse (5)
- forget (15)
- fork (14)
- format (14)
- free (9)
- frexp (7)
-
from
_ name (12) - front (7)
- gamma (7)
-
garbage
_ collect (7) - generate (7)
- get (5)
-
get
_ hosts _ path (7) -
get
_ resolv _ info (7) - getch (2)
- getegid (7)
- geteuid (7)
- getgid (7)
- getgrent (7)
- getgrgid (7)
- getgrnam (7)
- getlogin (7)
- getmouse (2)
- getpgid (7)
- getpgrp (7)
- getpriority (7)
- getpty (14)
- getpwent (7)
- getpwnam (7)
- getpwuid (7)
- getrlimit (7)
- gets (7)
- getservername (7)
- getsid (6)
- getstr (2)
- getuid (7)
- getwd (7)
- gid (7)
- gid= (7)
-
global
_ variables (7) -
grant
_ privilege (14) - grid (5)
- group (14)
- groups (7)
- groups= (7)
- grpowned? (7)
- gsub (21)
- guess (14)
- h (7)
-
has
_ colors? (2) - here? (7)
- hexencode (7)
-
html
_ escape (7) - hypot (7)
- ident (7)
- identical? (14)
- inch (2)
- inflate (7)
- info (22)
- info? (7)
-
init
_ color (2) -
init
_ pair (2) -
init
_ screen (2) - initgroups (7)
- insch (2)
- insertln (2)
- install (7)
-
install
_ acl (7) -
install
_ id _ conv (7) - instance (7)
- isEqual (7)
- iseuc (7)
- isjis (7)
- issetugid (7)
- issjis (7)
- isutf8 (7)
- iterator? (7)
- jacobian (7)
- kconv (7)
- keyname (2)
- kill (7)
- lambda (14)
-
last
_ error (3) - ldexp (7)
- lgamma (7)
- lines (2)
- link (7)
- list (7)
- ln (7)
-
ln
_ s (7) -
ln
_ sf (7) - load (21)
-
load
_ mime _ types (7) -
load
_ random _ file (7) -
local
_ variables (7) - location (5)
- log (42)
- log! (14)
- log10 (14)
- log10! (7)
- log2 (14)
- log2! (7)
- loop (14)
- ludecomp (7)
- lusolve (7)
- makedirs (7)
- malloc (9)
-
marshal
_ version (7) - mask (7)
- mask= (7)
- maxgroups (7)
- maxgroups= (7)
- measure (7)
-
memsize
_ of (7) -
memsize
_ of _ all (7) -
mime
_ type (7) - mkdir (7)
-
mkdir
_ p (7) - mkpath (7)
- mouseinterval (2)
- mousemask (2)
- move (7)
- mv (7)
-
new
_ proc _ class (5) -
new
_ proc _ class _ random (5) - next (5)
- nkf (7)
- nl (2)
- nlsolve (7)
- nocbreak (2)
- nocrmode (2)
- noecho (2)
- nonl (2)
- noraw (2)
- norm (7)
- notice (7)
- nprocessors (4)
- open (42)
- open! (7)
- opened? (7)
- owned? (7)
- p (7)
- pack (5)
- packdw (7)
- packqw (7)
-
pair
_ content (2) -
pair
_ number (2) - parse (7)
- parse! (7)
-
parse
_ header (7) -
parse
_ range _ header (7) - passwd (14)
- path (7)
-
pbkdf2
_ hmac (7) -
pbkdf2
_ hmac _ sha1 (7) - pid (7)
- pipe? (7)
- pipeline (7)
-
pipeline
_ r (14) -
pipeline
_ rw (14) -
pipeline
_ start (14) -
pipeline
_ w (14) - place (5)
- popen2 (14)
- popen2e (14)
- popen3 (14)
- pp (7)
- ppid (7)
- prefix (7)
-
pretty
_ generate (7) -
pretty
_ unparse (7) - prev (5)
-
primary
_ server (7) -
primary
_ server= (7) - print (7)
-
print
_ profile (7) - printf (14)
- proc (14)
- propagate (10)
-
proxy
_ basic _ auth (7) - prune (7)
-
pseudo
_ bytes (7) - putc (7)
- puts (7)
- pwd (7)
- quote (7)
- raise (21)
- rand (14)
-
random
_ add (7) -
random
_ bytes (7) -
random
_ string (7) - raw (2)
-
re
_ exchange (14) -
re
_ exchangeable? (14) -
reachable
_ objects _ from (6) -
read
_ entries (5) -
read
_ file (5) -
read
_ with _ encoding (5) - readable? (7)
-
readable
_ real? (7) - readfile (5)
- readline (14)
- readlines (7)
- realloc (9)
- realtime (7)
-
reason
_ phrase (7) - redirect? (7)
- refresh (2)
- remove (12)
-
remove
_ dir (7) -
remove
_ entry (7) -
remove
_ entry _ secure (7) -
remove
_ file (7) - reopen (7)
- require (7)
-
require
_ relative (7) -
reset
_ prog _ mode (2) - resize (2)
- resizeterm (2)
- restore (14)
- rid (14)
- rm (7)
-
rm
_ f (7) -
rm
_ r (7) -
rm
_ rf (7) - rmdir (7)
- rmtree (7)
- rowconfiginfo (5)
- rowconfigure (5)
- rsqrt (6)
-
safe
_ unlink (7) - scrl (2)
- seed (7)
- select (7)
-
server
_ error? (7) -
set
_ close _ on _ exec (7) -
set
_ home (7) -
set
_ non _ blocking (7) -
set
_ paths (7) -
set
_ trace _ func (7) - setegid (7)
- seteuid (7)
- setgid (7)
- setgid? (7)
- setgrent (7)
- setpgid (7)
- setpgrp (7)
- setpos (2)
- setpriority (7)
- setproctitle (5)
- setpwent (7)
- setregid (7)
- setresgid (7)
- setresuid (7)
- setreuid (7)
- setrgid (7)
- setrlimit (14)
- setruid (7)
- setscrreg (2)
- setsid (7)
- setuid (7)
- setuid? (7)
-
setup
_ params (7) - shellescape (7)
- shelljoin (7)
- shellsplit (7)
- shellwords (7)
-
sid
_ available? (14) - signame (6)
- sin (21)
- sin! (7)
- sinh (14)
- sinh! (7)
- size (12)
- size? (7)
- slaves (15)
- sleep (14)
- socket? (7)
-
source
_ index (7) - spawn (42)
-
split
_ header _ value (7) - sprintf (7)
- sqrt (27)
- sqrt! (7)
- srand (14)
- standend (2)
- standout (2)
-
start
_ color (2) -
start
_ profile (7) -
start
_ service (7) - status? (7)
- stdscr (2)
- sticky? (7)
-
stop
_ profile (7) -
stop
_ service (7) -
strict
_ decode64 (7) -
strict
_ encode64 (7) - su (7)
- sub (14)
- success? (7)
- switch (28)
- symlink (7)
- symlink? (7)
- syscall (7)
- sysconf (4)
- sysconfdir (7)
- system (28)
- systmpdir (7)
- tan (14)
- tan! (7)
- tanh (14)
- tanh! (7)
- test (14)
- thread (7)
- throw (7)
- timeout (9)
- timeout= (2)
- times (7)
- toeuc (7)
- tojis (7)
- tolocale (7)
- tosjis (7)
- touch (7)
- toutf16 (7)
- toutf32 (7)
- toutf8 (7)
-
trace
_ var (21) - trap (28)
- traverse (7)
- u (7)
- uid (7)
- uid= (7)
- uname (4)
-
undefine
_ finalizer (7) - unescape (7)
- ungetch (2)
- ungetmouse (2)
- unpackdw (7)
- unpackqw (7)
- unparse (7)
-
untrace
_ var (7) - uptodate? (7)
- uri (7)
-
url
_ encode (7) -
urlsafe
_ decode64 (7) -
urlsafe
_ encode64 (7) -
use
_ default _ colors (2) - wait (7)
- wait2 (7)
- waitall (7)
- waitpid (7)
- waitpid2 (7)
- warn (7)
- warning (7)
-
win
_ platform? (7) -
world
_ readable? (7) -
world
_ writable? (7) - writable? (7)
-
writable
_ real? (7) -
write
_ random _ file (7) - zero? (7)
-
zlib
_ version (7)
検索結果
先頭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) -> String (1.0) -
与えられたデータを Base64 エンコードした文字列を返します。
与えられたデータを Base64 エンコードした文字列を返します。
このメソッドは 4648 の "Base 64 Encoding with URL and Filename Safe Alphabet" に対応しています。
"+" を "-" に "/" を "_" に置き換えます。
@param bin Base64 エンコードするデータを指定します。 -
Benchmark
. # benchmark(caption = "" , label _ width = nil , fmtstr = nil , *labels) {|rep| . . . } -> bool (1.0) -
Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。
Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。
基本的には以下のように使います。
ブロックが Benchmark::Tms オブジェクトの配列を返した場合は、
それらの数値も追加の行に表示されます。
@param caption レポートの一行目に表示する文字列を指定します。
@param label_width ラベルの幅を指定します。
@param fmtstr フォーマット文字列を指定します。
この引数を省略すると Benchmark::FORMAT が使用されます。... -
Benchmark
. # bm(label _ width = 0 , *labels) {|rep| . . . } -> bool (1.0) -
Benchmark.#benchmark メソッドの引数を簡略化したものです。
Benchmark.#benchmark メソッドの引数を簡略化したものです。
Benchmark.#benchmark メソッドと同様に働きます。
@param label_width ラベルの幅を指定します。
@param labels ブロックが Benchmark::Tms オブジェクトの配列を返す場合に指定します。
@return STDIN.sync の値を返すだけなので返り値に意味はありません。
例:
require 'benchmark'
n = 50000
Benchmark.bm do |x|
x.report { for i ... -
Benchmark
. # bmbm(width = 0) {|job| . . . } -> [Benchmark :: Tms] (1.0) -
Benchmark::Job オブジェクトを生成して、それを引数として与えられたブロックを 実行します。
Benchmark::Job オブジェクトを生成して、それを引数として与えられたブロックを
実行します。
ベンチマークの結果は GC の影響によって歪められてしまうことがあります。
このメソッドは与えられたブロックを二度実行する事によってこの影響を最小化します。
一回目は実行環境を安定化するためにリハーサルとして実行します。二回目は本番として
実行します。
二回目のブロック実行の前に GC.start を実行しますが、この実行時間は計測には
含まれません。しかし、実際にはこのメソッドを使用しても、GC などの影響を分離する
ことは保証されません。
@param width ラベルの幅を... -
Benchmark
. # measure(label = "") { . . . } -> Benchmark :: Tms (1.0) -
与えられたブロックを実行して、経過した時間を Process.#times で計り、 Benchmark::Tms オブジェクトを生成して返します。
与えられたブロックを実行して、経過した時間を Process.#times で計り、
Benchmark::Tms オブジェクトを生成して返します。
Benchmark::Tms オブジェクトには to_s が定義されているので、
基本的には以下のように使います。
require 'benchmark'
puts Benchmark::CAPTION
puts Benchmark.measure { "a"*1_000_000 }
#=>
user system total real
1.166667 ... -
Benchmark
. # realtime { . . . } -> Float (1.0) -
与えられたブロックを評価して実行時間を計測して返します。
与えられたブロックを評価して実行時間を計測して返します。 -
BigMath
. # E(prec) -> BigDecimal (1.0) -
自然対数の底 e を prec で指定した精度で計算します。
自然対数の底 e を prec で指定した精度で計算します。
@param prec 計算結果の精度。
@raise ArgumentError prec に 0 以下が指定された場合に発生します。
例:
require "bigdecimal/math"
puts BigMath::E(10) #=> 0.271828182845904523536028752390026306410273E1 -
BigMath
. # PI(prec) -> BigDecimal (1.0) -
円周率を prec で指定した精度で計算します。
円周率を prec で指定した精度で計算します。
@param prec 計算結果の精度。
@raise ArgumentError prec に 0 以下が指定された場合に発生します。
例:
require "bigdecimal/math"
puts BigMath::PI(10) #=> 0.314159265359224236485984067E1 -
BigMath
. # atan(x , prec) -> BigDecimal (1.0) -
x の逆正接関数を prec で指定した精度で計算します。単位はラジアンです。 x に無限大や NaN を指定した場合には NaN を返します。
x の逆正接関数を prec で指定した精度で計算します。単位はラジアンです。
x に無限大や NaN を指定した場合には NaN を返します。
@param x 計算対象の BigDecimal オブジェクト。単位はラジアン。
@param prec 計算結果の精度。
@raise ArgumentError x の絶対値が1以上の場合に発生します。
@raise ArgumentError prec に 0 以下が指定された場合に発生します。
例:
require "bigdecimal/math"
puts BigMath::atan(BigDecimal.ne...