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