ライブラリ
- ビルトイン (2027)
- abbrev (12)
- base64 (72)
- benchmark (60)
- bigdecimal (48)
-
bigdecimal
/ jacobian (36) -
bigdecimal
/ ludcmp (24) -
bigdecimal
/ math (72) -
bigdecimal
/ newton (12) - cmath (240)
- continuation (12)
- digest (12)
-
digest
/ bubblebabble (12) - drb (84)
- erb (60)
- etc (108)
- fiddle (72)
- fileutils (259)
- find (12)
- json (144)
- kconv (36)
- mathn (8)
- objspace (132)
- open-uri (16)
- open3 (216)
- openssl (696)
- pp (4)
- profiler (6)
- pty (48)
- readline (12)
- rubygems (60)
- shellwords (48)
- syslog (252)
- timeout (21)
-
webrick
/ accesslog (36) -
webrick
/ htmlutils (12) -
webrick
/ httpauth (24) -
webrick
/ httpstatus (84) -
webrick
/ httputils (108) -
webrick
/ utils (36) -
win32
/ registry (192) -
win32
/ resolv (12) - zlib (65)
クラス
-
Win32
:: Resolv (12)
モジュール
- Abbrev (12)
- Base64 (72)
- Benchmark (60)
- BigMath (96)
- CMath (240)
- DRb (72)
-
DRb
:: DRbProtocol (12) - Digest (24)
-
ERB
:: DefMethod (12) -
ERB
:: Util (48) - Etc (108)
- Fiddle (72)
- FileTest (120)
- FileUtils (259)
- Find (12)
- Gem (60)
- JSON (144)
- Jacobian (36)
- Kconv (36)
- Kernel (1121)
- LUSolve (24)
- Marshal (48)
- Math (332)
- Newton (12)
- ObjectSpace (252)
- Open3 (216)
-
OpenSSL
:: ASN1 (564) -
OpenSSL
:: PKCS5 (24) -
OpenSSL
:: Random (108) - PTY (48)
- Process (158)
-
Process
:: GID (72) -
Process
:: UID (72) -
Profiler
_ _ (6) - Readline (12)
- Shellwords (48)
- Signal (48)
- Syslog (228)
-
Syslog
:: Macros (24) - Timeout (21)
-
WEBrick
:: AccessLog (36) -
WEBrick
:: HTMLUtils (12) -
WEBrick
:: HTTPAuth (24) -
WEBrick
:: HTTPStatus (84) -
WEBrick
:: HTTPUtils (108) -
WEBrick
:: Utils (36) -
Win32
:: Registry :: API (192) - Zlib (65)
キーワード
- 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)
- UTCTime (24)
- UTF8String (24)
- UniversalString (24)
- VideotexString (24)
-
_ _ callee _ _ (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)
- 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)
-
change
_ privilege (24) - chardev? (12)
- check (12)
- chmod (12)
-
chmod
_ R (12) - chown (12)
-
chown
_ R (12) -
clear
_ paths (12) -
client
_ error? (12) -
clock
_ gettime (12) - cmp (12)
-
compare
_ file (12) -
compare
_ stream (12) - confstr (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
_ lr (7) -
crc
_ table (12) -
create
_ listeners (12) - crit (12)
- daemon (12)
- debug (12)
- decode (12)
- decode64 (12)
-
decode
_ all (12) -
def
_ erb _ method (12) -
define
_ finalizer (24) - deflate (12)
- detach (12)
- dfdxi (12)
- dlopen (12)
- dlunwrap (12)
- dlwrap (12)
- dump (24)
-
each
_ object (48) - egd (12)
-
egd
_ bytes (12) - emerg (12)
- encode64 (12)
- erf (12)
- erfc (12)
- err (12)
- error? (12)
- escape (36)
- escape8bit (12)
-
escape
_ path (12) - eval (24)
- exec (48)
- executable? (12)
-
executable
_ real? (12) - exit (12)
- exit! (12)
- exp (30)
- exp! (6)
- facility (12)
- fail (36)
-
fast
_ generate (12) -
fast
_ unparse (12) - find (12)
- format (24)
- free (12)
- frexp (12)
-
from
_ name (24) - gamma (12)
-
garbage
_ collect (12) - generate (12)
-
get
_ hosts _ path (12) - getgrnam (12)
- getpty (24)
- getpwent (12)
- getpwnam (12)
- getpwuid (12)
- getservername (12)
-
global
_ variables (12) -
grant
_ privilege (24) - gsub (36)
- h (12)
- hexencode (12)
-
html
_ escape (12) - hypot (12)
- ident (12)
- identical? (24)
- inflate (12)
- info (12)
- info? (12)
- install (12)
-
install
_ acl (12) -
install
_ id _ conv (12) - instance (12)
- isEqual (12)
- isjis (12)
- iterator? (12)
- jacobian (12)
- kconv (12)
- kill (12)
- lambda (18)
- ldexp (12)
- lgamma (12)
- list (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 (12)
- 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
_ p (12) - mkpath (12)
- norm (12)
- notice (12)
- open (64)
- open! (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) - pipeline (12)
-
pipeline
_ r (24) -
pipeline
_ rw (24) -
pipeline
_ start (24) -
pipeline
_ w (24) - popen2 (24)
- popen2e (24)
- popen3 (24)
- pp (12)
-
pretty
_ generate (12) -
pretty
_ unparse (12) -
primary
_ server (12) -
primary
_ server= (12) - print (12)
- printf (24)
- proc (19)
-
proxy
_ basic _ auth (12) -
pseudo
_ bytes (12) - puts (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
_ dir (12) -
remove
_ entry (12) -
remove
_ entry _ secure (12) -
remove
_ file (12) - reopen (12)
- require (12)
-
require
_ relative (12) - restore (24)
- rsqrt (4)
-
safe
_ unlink (12) - seed (12)
- select (12)
-
server
_ error? (12) -
set
_ paths (12) -
set
_ trace _ func (12) - setrlimit (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)
- spawn (72)
-
split
_ header _ value (12) - sprintf (12)
- sqrt (34)
- sqrt! (6)
- srand (24)
-
start
_ profile (6) -
start
_ service (12) - status? (12)
-
strict
_ decode64 (12) -
strict
_ encode64 (12) - sub (24)
- success? (12)
- syscall (12)
- sysconf (12)
- system (48)
- tan (18)
- tan! (6)
- tanh (18)
- tanh! (6)
- test (24)
- thread (12)
- throw (12)
- timeout (21)
- tolocale (12)
-
trace
_ object _ allocations (12) -
trace
_ object _ allocations _ start (12) -
trace
_ object _ allocations _ stop (12) -
trace
_ var (36) - trap (48)
- traverse (12)
- u (12)
- uname (12)
-
undefine
_ finalizer (12) - unescape (12)
- unpackdw (12)
- unpackqw (12)
- unparse (12)
-
untrace
_ var (12) - uptodate? (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)
検索結果
先頭5件
-
Benchmark
. # benchmark(caption = "" , label _ width = nil , fmtstr = nil , *labels) {|rep| . . . } -> [Benchmark :: Tms] (9219.0) -
Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。
...Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。
基本的には以下のように使います。
ブロックが Benchmark::Tms オブジェクトの配列を返した場合は、
それらの数値も追加の行に表示......す。
@param caption レポートの一行目に表示する文字列を指定します。
@param label_width ラベルの幅を指定します。
@param fmtstr フォーマット文字列を指定します。
この引数を省略すると Benchmark::FORMAT が使用......れます。
@param labels ブロックが Benchmark::Tms オブジェクトの配列を返す場合に指定します。
=== フォーマット文字列
フォーマット文字列として以下が使用できます。
: %u
user CPU time で置き換えられます。Benchmark::Tms#utime
: %... -
Readline
. # readline(prompt = "" , add _ hist = false) -> String | nil (9213.0) -
prompt を出力し、ユーザからのキー入力を待ちます。 エンターキーの押下などでユーザが文字列を入力し終えると、 入力した文字列を返します。 このとき、add_hist が true であれば、入力した文字列を入力履歴に追加します。 何も入力していない状態で EOF(UNIX では ^D) を入力するなどで、 ユーザからの入力がない場合は nil を返します。
...ます。
エンターキーの押下などでユーザが文字列を入力し終えると、
入力した文字列を返します。
このとき、add_hist が true であれば、入力した文字列を入力履歴に追加します。
何も入力していない状態で EOF(UNIX では ^D)......は行内編集が可能で、vi モードと Emacs モードが用意されています。
デフォルトは Emacs モードです。
@param prompt カーソルの前に表示する文字列を指定します。デフォルトは""です。
@param add_hist 真ならば、入力した文字列を......デフォルトは偽です。
@raise IOError 標準入力が tty でない、かつ、標準入力をクローズしている
(isatty(2) の errno が EBADF である。) 場合に発生します。
例:
require "readline"
input = Readline.readline
(プロンプトなどは... -
CMath
. # atan!(x) -> Float (9201.0) -
実数 x の逆正接関数の値をラジアンで返します。Math.#atan のエイリ アスです。
...ath.#atan のエイリ
アスです。
@param x 実数。
@return 返される値の範囲は [-π/2, +π/2] です。
@raise TypeError x に数値以外を指定した場合に発生します。
@raise RangeError x に実数以外の数値を指定した場合に発生します。
@see Math.#a......tan... -
CMath
. # atan(z) -> Float | Complex (9201.0) -
z の逆正接関数の値をラジアンで返します。
...z の逆正接関数の値をラジアンで返します。
@param z 数値
@raise TypeError z に数値以外を指定した場合に発生します。... -
CMath
. # atan2!(y , x) -> Float (9201.0) -
実数 y / x の逆正接関数の値を返します。Math.#atan2 のエイリアスで す。
...数の値を返します。Math.#atan2 のエイリアスで
す。
@param y 実数。
@param x 実数。
@return 返される値の範囲は [-π, π] です。
@raise TypeError 引数のどちらかに数値以外を指定した場合に発生します。
@raise RangeError 引数のどちら......かに数値以外を指定した場合に発生します。
@see Math.#atan2... -
CMath
. # atan2(y , x) -> Float | Complex (9201.0) -
y / x の逆正接関数の値を返します。
...y / x の逆正接関数の値を返します。
@param y 数値
@param x 数値
@raise TypeError 引数のどちらかに数値以外を指定した場合に発生します。... -
CMath
. # atanh!(x) -> Float (9201.0) -
実数 x の逆双曲線正接関数の値を返します。Math.#atanh のエイリアスです。
...します。Math.#atanh のエイリアスです。
@param x -1 < x < 1 の実数。
@return 実数。
@raise TypeError x に数値以外を指定した場合に発生します。
@raise Math::DomainError x に範囲外の実数を指定した場合に発生します。
@raise RangeError x に......実数以外の数値を指定した場合に発生します。
@see Math.#atanh... -
CMath
. # atanh(z) -> Float | Complex (9201.0) -
z の逆双曲線正接関数の値を返します。
...z の逆双曲線正接関数の値を返します。
@param z 数値
@raise TypeError z に数値以外を指定した場合に発生します。... -
Math
. # atan(x) -> Float (9201.0) -
x の逆正接関数(arctangent)の値をラジアンで返します。
...x の逆正接関数(arctangent)の値をラジアンで返します。
@param x 実数
@return 返される値の範囲は [-π/2, +π/2] です。
@raise TypeError x に数値以外を指定した場合に発生します。
@raise RangeError x に実数以外の数値を指定した場合......に発生します。
//emlist[例][ruby]{
Math.atan(0) # => 0.0
//}
@see Math.#atan2, Math.#tan... -
Math
. # atan2(y , x) -> Float (9201.0) -
y / x の逆正接関数(arctangent)の値をラジアンで返します。
...x の逆正接関数(arctangent)の値をラジアンで返します。
@param y 実数
@param x 実数
@return 返される値の範囲は [-π, π] です。
//emlist[例][ruby]{
Math.atan2(1,0) #=> 1.5707963267949
Math.atan2(-1,0) #=> -1.5707963267949
//}
@raise TypeError y, x に......数値以外を指定した場合に発生します。
@raise RangeError y, x に実数以外の数値を指定した場合に発生します。
@see Math.#atan, Math.#tan... -
Math
. # atanh(x) -> Float (9201.0) -
x の逆双曲線正接関数(area hyperbolic tangent)の値を返します。
...線正接関数(area hyperbolic tangent)の値を返します。
=== 定義
atanh(x) = log((1+x)/(1-x)) / 2 [-1 < x < 1]
@param x -1 < x < 1 の実数
@return 実数
@raise TypeError x に数値以外を指定した場合に発生します。
@raise Math::DomainError x に範囲外......の実数を指定した場合に発生します。
@raise RangeError x に実数以外の数値を指定した場合に発生します。
@see Math.#tanh... -
WEBrick
:: HTTPAuth . # basic _ auth(req , res , realm) {|user , pass| . . . } -> nil (9201.0) -
Basic 認証を行うためのメソッドです。
...Basic 認証を行うためのメソッドです。
与えられたブロックは user, pass をブロックパラメータとして渡されて評価されます。
ブロックの評価結果が真である場合、認証が成功したことになります。
ブロックの評価結果が偽......@param req クライアントからのリクエストを表す WEBrick::HTTPRequest オブジェクトを指定します。
@param res WEBrick::HTTPResponse オブジェクトを指定します。
@param realm 認証のレルムを文字列で指定します。
@raise WEBrick::HTTPStatus::Unauth......orized 認証に失敗した場合に発生します。
require 'webrick'
srv.mount_proc('/basic_auth') {|req, res|
HTTPAuth.basic_auth(req, res, "WEBrick's realm") {|user, pass|
user == 'webrick' && pass == 'supersecretpassword'
}
res.body = "hoge"
}...