別のキーワード
ライブラリ
- ビルトイン (2081)
- abbrev (12)
- base64 (72)
- benchmark (36)
- bigdecimal (48)
-
bigdecimal
/ jacobian (12) -
bigdecimal
/ ludcmp (24) -
bigdecimal
/ math (72) -
bigdecimal
/ newton (12) - cmath (138)
- digest (12)
-
digest
/ bubblebabble (12) - drb (12)
- erb (60)
- etc (72)
- fiddle (72)
- fileutils (535)
- find (24)
- json (156)
- kconv (72)
- nkf (24)
- objspace (84)
- open-uri (16)
- open3 (216)
- openssl (684)
- pp (4)
- profiler (6)
- pty (48)
- readline (12)
- shellwords (48)
- syslog (192)
- timeout (21)
- uri (12)
-
webrick
/ accesslog (36) -
webrick
/ htmlutils (12) -
webrick
/ httpauth (24) -
webrick
/ httpstatus (84) -
webrick
/ httputils (132) -
webrick
/ utils (60) - zlib (82)
モジュール
- Abbrev (12)
- Base64 (72)
- Benchmark (36)
- BigMath (96)
- CMath (138)
- DRb (12)
- Digest (24)
-
ERB
:: DefMethod (12) -
ERB
:: Util (48) - Etc (72)
- Fiddle (72)
- FileTest (309)
- FileUtils (535)
- Find (24)
- JSON (156)
- Jacobian (12)
- Kconv (72)
- Kernel (1060)
- LUSolve (24)
- Marshal (24)
- Math (108)
- NKF (24)
- Newton (12)
- ObjectSpace (204)
- Open3 (216)
-
OpenSSL
:: ASN1 (564) -
OpenSSL
:: PKCS5 (24) -
OpenSSL
:: Random (96) - PTY (48)
- Process (288)
-
Process
:: GID (48) -
Process
:: Sys (108) -
Process
:: UID (48) -
Profiler
_ _ (6) - Readline (12)
- Shellwords (48)
- Signal (24)
- Syslog (168)
-
Syslog
:: Macros (24) - Timeout (21)
-
WEBrick
:: AccessLog (36) -
WEBrick
:: HTMLUtils (12) -
WEBrick
:: HTTPAuth (24) -
WEBrick
:: HTTPStatus (84) -
WEBrick
:: HTTPUtils (132) -
WEBrick
:: Utils (60) - Zlib (82)
キーワード
- Array (12)
- BMPString (24)
- BigDecimal (24)
- BitString (24)
- Boolean (24)
- Complex (24)
- Enumerated (24)
- Float (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)
- PI (12)
- PrintableString (24)
- Rational (12)
- Sequence (24)
- Set (24)
- String (12)
- T61String (24)
- URI (12)
- UTCTime (24)
- UTF8String (24)
- UniversalString (24)
- VideotexString (24)
-
_ id2ref (12) - ` (12)
- abbrev (12)
- abort (24)
- acos (6)
- acosh (6)
- adler32 (17)
-
adler32
_ combine (12) - alert (12)
-
allocation
_ sourcefile (12) -
allocation
_ sourceline (12) - asin (6)
- asinh (6)
- atan (18)
- atan2 (6)
- atanh (6)
- autoload (12)
- autoload? (12)
-
basic
_ auth (12) - benchmark (12)
- blockdev? (12)
- bm (12)
- bmbm (12)
- bubblebabble (12)
- caller (36)
-
caller
_ locations (24) - capture2 (12)
- capture2e (12)
- capture3 (12)
- catch (24)
- cbrt (6)
- cd (24)
-
change
_ privilege (24) - chardev? (12)
- chdir (24)
- chmod (12)
-
chmod
_ R (12) - chomp (12)
- chown (12)
-
chown
_ R (12) -
client
_ error? (12) -
clock
_ gettime (12) - cmp (12)
-
compare
_ file (12) -
compare
_ stream (12) - confstr (12)
- copy (12)
-
copy
_ entry (12) -
copy
_ file (12) -
copy
_ stream (12) - cos (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) -
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)
- dequote (12)
- detach (12)
- directory? (12)
- dlopen (12)
- dlunwrap (12)
- dlwrap (12)
- dump (12)
-
each
_ object (48) - egd (12)
-
egd
_ bytes (12) - egid= (12)
- eid= (24)
- emerg (12)
- empty? (9)
- encode64 (12)
- erf (12)
- erfc (12)
- err (12)
- error? (12)
- escape (36)
- escape8bit (12)
-
escape
_ path (12) - euid= (12)
- eval (24)
- exec (48)
- executable? (12)
-
executable
_ real? (12) - exist? (12)
- exit (12)
- exit! (12)
- exp (30)
- exp! (6)
- fail (36)
-
fast
_ generate (12) -
fast
_ unparse (12) - file? (12)
- find (24)
- format (24)
- free (12)
- frexp (12)
-
from
_ name (24) - gamma (12)
-
garbage
_ collect (12) - generate (12)
- getgrgid (12)
- getgrnam (12)
- getpgid (12)
- getpriority (12)
- getpty (24)
- getpwnam (12)
- getpwuid (12)
- getrlimit (12)
- gets (12)
- getsid (12)
- gid= (12)
-
grant
_ privilege (24) - groups= (12)
- grpowned? (12)
- gsub (36)
- guess (24)
- h (12)
- hexencode (12)
-
html
_ escape (12) - identical? (24)
- inflate (12)
- info (12)
- info? (12)
- initgroups (12)
- install (12)
- iseuc (12)
- isjis (12)
- jacobian (12)
- kconv (12)
- kill (12)
- ldexp (12)
- lgamma (12)
- link (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) - log (60)
- log! (12)
- log10 (6)
- log2 (6)
- ludecomp (12)
- lusolve (12)
- makedirs (12)
- malloc (12)
- mask (12)
- maxgroups (12)
- maxgroups= (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)
- notice (12)
- open (64)
- open! (12)
- owned? (12)
- p (12)
- parse (12)
- parse! (12)
-
parse
_ header (12) -
parse
_ range _ header (12) -
pbkdf2
_ hmac (12) -
pbkdf2
_ hmac _ sha1 (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)
-
pretty
_ generate (12) -
pretty
_ unparse (12) - print (12)
-
print
_ profile (6) - printf (24)
-
proxy
_ basic _ auth (12) -
pseudo
_ bytes (12) - putc (12)
- puts (12)
- quote (12)
- raise (36)
- rand (24)
-
random
_ add (12) -
random
_ bytes (12) -
random
_ string (12) - readable? (12)
-
readable
_ real? (12) - readline (24)
- readlines (12)
- realloc (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)
- rm (12)
-
rm
_ f (12) -
rm
_ r (12) -
rm
_ rf (12) - rmdir (12)
- rmtree (12)
-
safe
_ unlink (12) - seed (12)
- select (12)
-
server
_ error? (12) -
set
_ close _ on _ exec (12) -
set
_ non _ blocking (12) -
set
_ trace _ func (12) - setegid (12)
- seteuid (12)
- setgid (12)
- setgid? (12)
- setpgid (12)
- setpriority (12)
- setregid (12)
- setresgid (12)
- setresuid (12)
- setreuid (12)
- setrgid (12)
- setrlimit (24)
- setruid (12)
- setuid? (12)
-
setup
_ params (12) - shellescape (12)
- shelljoin (12)
- shellsplit (12)
- shellwords (12)
- sin (18)
- sinh (6)
- size (12)
- size? (12)
- sleep (24)
- socket? (12)
- spawn (72)
-
split
_ header _ value (12) - sprintf (12)
- sqrt (18)
- srand (24)
-
start
_ service (12) - sticky? (12)
-
strict
_ decode64 (12) -
strict
_ encode64 (12) - su (12)
- sub (24)
- success? (12)
- symlink (12)
- symlink? (12)
- syscall (12)
- sysconf (12)
- system (48)
- tan (6)
- tanh (6)
- test (24)
- throw (12)
- timeout (21)
- toeuc (12)
- tolocale (12)
- touch (12)
-
trace
_ var (36) - trap (48)
- traverse (12)
- u (12)
- uid= (12)
-
undefine
_ finalizer (12) - unescape (12)
- unparse (12)
-
untrace
_ var (12) - uptodate? (12)
-
url
_ encode (12) -
urlsafe
_ decode64 (12) -
urlsafe
_ encode64 (12) - wait (12)
- wait2 (12)
- waitpid (12)
- waitpid2 (12)
- warn (12)
- warning (12)
-
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) -
write
_ random _ file (12) - zero? (12)
検索結果
先頭5件
-
Etc
. # getgrnam(name) -> Etc :: Group (9207.0) -
name という名前のグループエントリを返します。
...name という名前のグループエントリを返します。
@param name 検索するグループ名。
@raise ArgumentError エントリが見つからなかった場合に発生します。
@see getgrnam(3), Etc::Group... -
Etc
. # getpwnam(name) -> Etc :: Passwd (9207.0) -
passwd データベースを検索し、 名前が name である passwd エントリを返します。
...passwd データベースを検索し、
名前が name である passwd エントリを返します。
@param name 検索するユーザ名。
@raise ArgumentError エントリが見つからなかった場合に発生します。
@see getpwnam(3), Etc::Passwd... -
FileTest
. # readable _ real?(file) -> bool (9207.0) -
ファイルがカレントプロセスの実ユーザか実グループによって読み込み可能な時に真を 返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
...読み込み可能な時に真を
返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
@param file ファイル名を表す文字列を指定します。
@see FileTest.#readable?... -
WEBrick
:: HTTPUtils . # parse _ range _ header(ranges _ specifier) (9207.0) -
@todo ???
...@todo ???
@param ranges_specifier... -
Open3
. # popen3(*cmd) -> [IO , IO , IO , Thread] (9125.0) -
外部プログラム cmd を実行し、そのプロセスの標準入力、標準出力、標準エラー 出力に接続されたパイプと実行したプロセスを待つためのスレッドを 4 要素の 配列で返します。
...を待つためのスレッドを 4 要素の
配列で返します。
require 'open3'
stdin, stdout, stderr, wait_thr = *Open3.popen3("/usr/bin/nroff -man")
@param cmd 実行するコマンドを指定します。
@return ブロックを指定した場合はブロックの最後に評価さ......se します。この場合はブロックの最後の式の結果を返します。
require 'open3'
Open3.popen3("read stdin; echo stdout; echo stderr >&2") {|stdin, stdout, stderr, wait_thr|
stdin.puts "stdin"
stdin.close # または close_write
p stdout.read
p stderr.rea......\n"
"stderr\n"
stdin への入力が終わったらできる限り早く close か close_write
で閉じるべきです。
[UNIX系OS固有の注意] Open3 で作成した子プロセスは
wait(2) しなくてもゾンビになりません。
引数 cmd はそのまま Kernel.#spawn に... -
Open3
. # popen3(*cmd) {|stdin , stdout , stderr , wait _ thr| . . . } -> () (9125.0) -
外部プログラム cmd を実行し、そのプロセスの標準入力、標準出力、標準エラー 出力に接続されたパイプと実行したプロセスを待つためのスレッドを 4 要素の 配列で返します。
...を待つためのスレッドを 4 要素の
配列で返します。
require 'open3'
stdin, stdout, stderr, wait_thr = *Open3.popen3("/usr/bin/nroff -man")
@param cmd 実行するコマンドを指定します。
@return ブロックを指定した場合はブロックの最後に評価さ......se します。この場合はブロックの最後の式の結果を返します。
require 'open3'
Open3.popen3("read stdin; echo stdout; echo stderr >&2") {|stdin, stdout, stderr, wait_thr|
stdin.puts "stdin"
stdin.close # または close_write
p stdout.read
p stderr.rea......\n"
"stderr\n"
stdin への入力が終わったらできる限り早く close か close_write
で閉じるべきです。
[UNIX系OS固有の注意] Open3 で作成した子プロセスは
wait(2) しなくてもゾンビになりません。
引数 cmd はそのまま Kernel.#spawn に... -
Kernel
. # caller(range) -> [String] | nil (9119.0) -
start 段上の呼び出し元の情報を $@ の形式のバックトレース(文字列の配列)として返します。
...す。caller の戻り値を $@ に代入することで
例外の発生位置を設定できます。
引数で指定した値が範囲外の場合は nil を返します。
@param start long の範囲を超えない正の整数でスタックレベルを指定します。
@param length 取得す......@param range 取得したいスタックの範囲を示す Range オブジェクトを指定します。
@see Kernel.#set_trace_func,Kernel.#raise,
Kernel.#caller_locations
//emlist[例][ruby]{
def foo
p caller(0)
p caller(1)
p caller(2)
p caller(3)
p caller(4)
end
def bar
foo
en......ler の要素から [ファイル名, 行番号, メソッド名]
を取り出して返します。
//emlist[例][ruby]{
def parse_caller(at)
if /^(.+?):(\d+)(?::in `(.*)')?/ =~ at
file = $1
line = $2.to_i
method = $3
[file, line, method]
end
end
def foo
p parse_caller(caller... -
Kernel
. # caller(start = 1) -> [String] | nil (9119.0) -
start 段上の呼び出し元の情報を $@ の形式のバックトレース(文字列の配列)として返します。
...す。caller の戻り値を $@ に代入することで
例外の発生位置を設定できます。
引数で指定した値が範囲外の場合は nil を返します。
@param start long の範囲を超えない正の整数でスタックレベルを指定します。
@param length 取得す......@param range 取得したいスタックの範囲を示す Range オブジェクトを指定します。
@see Kernel.#set_trace_func,Kernel.#raise,
Kernel.#caller_locations
//emlist[例][ruby]{
def foo
p caller(0)
p caller(1)
p caller(2)
p caller(3)
p caller(4)
end
def bar
foo
en......ler の要素から [ファイル名, 行番号, メソッド名]
を取り出して返します。
//emlist[例][ruby]{
def parse_caller(at)
if /^(.+?):(\d+)(?::in `(.*)')?/ =~ at
file = $1
line = $2.to_i
method = $3
[file, line, method]
end
end
def foo
p parse_caller(caller... -
Kernel
. # caller(start , length) -> [String] | nil (9119.0) -
start 段上の呼び出し元の情報を $@ の形式のバックトレース(文字列の配列)として返します。
...す。caller の戻り値を $@ に代入することで
例外の発生位置を設定できます。
引数で指定した値が範囲外の場合は nil を返します。
@param start long の範囲を超えない正の整数でスタックレベルを指定します。
@param length 取得す......@param range 取得したいスタックの範囲を示す Range オブジェクトを指定します。
@see Kernel.#set_trace_func,Kernel.#raise,
Kernel.#caller_locations
//emlist[例][ruby]{
def foo
p caller(0)
p caller(1)
p caller(2)
p caller(3)
p caller(4)
end
def bar
foo
en......ler の要素から [ファイル名, 行番号, メソッド名]
を取り出して返します。
//emlist[例][ruby]{
def parse_caller(at)
if /^(.+?):(\d+)(?::in `(.*)')?/ =~ at
file = $1
line = $2.to_i
method = $3
[file, line, method]
end
end
def foo
p parse_caller(caller...