種類
ライブラリ
- English (300)
- ビルトイン (3686)
- benchmark (12)
- bigdecimal (36)
- continuation (36)
- csv (12)
- delegate (12)
- digest (12)
-
drb
/ extservm (12) - e2mmap (18)
-
irb
/ cmd / load (24) -
irb
/ xmp (24) - json (36)
-
minitest
/ spec (2) -
minitest
/ unit (2) - mkmf (1092)
- open-uri (80)
- open3 (24)
- openssl (24)
- pathname (24)
- pp (16)
- profiler (6)
- psych (24)
- pty (48)
- rake (156)
- rubygems (12)
-
rubygems
/ commands / lock _ command (12) -
rubygems
/ custom _ require (12) -
rubygems
/ timer (12) - scanf (24)
- shell (12)
-
shell
/ command-processor (18) -
shell
/ filter (12) - socket (96)
- stringio (60)
- syslog (108)
- tempfile (55)
-
test
/ unit (1) - timeout (37)
- tracer (36)
- un (156)
- uri (12)
-
webrick
/ utils (12) - win32ole (12)
- zlib (48)
クラス
-
ARGF
. class (156) - Array (72)
- BasicObject (24)
-
Benchmark
:: Tms (12) - BigDecimal (12)
- Binding (12)
- CSV (12)
- Complex (24)
- Continuation (24)
-
DRb
:: ExtServManager (12) - Enumerator (12)
- Exception (24)
- File (36)
- IO (432)
-
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Require (12) - LoadError (12)
- Method (12)
- Module (180)
- Object (205)
-
OpenSSL
:: BN (12) - Proc (19)
- Random (91)
- Rational (12)
- Shell (12)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (12) - Socket (48)
- String (84)
- StringIO (60)
- SystemExit (12)
- Tempfile (55)
- Thread (96)
-
Thread
:: Backtrace :: Location (12) - TracePoint (12)
- Tracer (36)
- UnboundMethod (24)
- UncaughtThrowError (22)
-
WIN32OLE
_ EVENT (12) - XMP (12)
-
Zlib
:: GzipWriter (48)
モジュール
- Exception2MessageMapper (18)
- FileTest (12)
- FileUtils (24)
- Kernel (3778)
-
MiniTest
:: Assertions (2) - Open3 (24)
-
OpenSSL
:: Buffering (12) - OpenURI (24)
-
OpenURI
:: OpenRead (24) - PTY (48)
- Process (96)
-
Socket
:: Constants (48) - Syslog (108)
-
Test
:: Unit (1) - Timeout (21)
- URI (16)
-
WEBrick
:: Utils (12) - Warning (18)
キーワード
-
$ ! (12) -
$ " (12) -
$ $ (12) -
$ & (12) -
$ & # 39; (12) -
$ * (12) -
$ + (12) -
$ , (12) -
$ -0 (12) -
$ -F (12) -
$ -I (12) -
$ -K (12) -
$ -W (12) -
$ -a (12) -
$ -d (12) -
$ -i (12) -
$ -l (12) -
$ -p (12) -
$ -v (12) -
$ -w (12) -
$ . (12) -
$ / (12) -
$ 0 (12) -
$ 1 (12) -
$ 10 (12) -
$ 11 (12) -
$ 2 (12) -
$ 3 (12) -
$ 4 (12) -
$ 5 (12) -
$ 6 (12) -
$ 7 (12) -
$ 8 (12) -
$ 9 (12) -
$ : (12) -
$ ; (12) -
$ < (12) -
$ = (12) -
$ > (12) -
$ ? (12) -
$ @ (12) -
$ ARGV (12) -
$ CFLAGS (12) -
$ CHILD _ STATUS (12) -
$ DEBUG (12) -
$ DEFAULT _ INPUT (12) -
$ DEFAULT _ OUTPUT (12) -
$ ERROR _ INFO (12) -
$ ERROR _ POSITION (12) -
$ FIELD _ SEPARATOR (12) -
$ FILENAME (12) -
$ FS (12) -
$ IGNORECASE (12) -
$ INPUT _ LINE _ NUMBER (12) -
$ INPUT _ RECORD _ SEPARATOR (12) -
$ KCODE (12) -
$ LAST _ MATCH _ INFO (12) -
$ LAST _ PAREN _ MATCH (12) -
$ LAST _ READ _ LINE (12) -
$ LDFLAGS (12) -
$ LOADED _ FEATURES (12) -
$ LOAD _ PATH (12) -
$ MATCH (12) -
$ NR (12) -
$ OFS (12) -
$ ORS (12) -
$ OUTPUT _ FIELD _ SEPARATOR (12) -
$ OUTPUT _ RECORD _ SEPARATOR (12) -
$ PID (12) -
$ POSTMATCH (12) -
$ PREMATCH (12) -
$ PROCESS _ ID (12) -
$ PROGRAM _ NAME (12) -
$ RS (12) -
$ SAFE (12) -
$ VERBOSE (12) -
$ \ (12) -
$ _ (12) -
$ ` (12) -
$ archdir (12) -
$ defs (12) -
$ hdrdir (12) -
$ libdir (12) -
$ libs (12) -
$ sitearchdir (12) -
$ sitelibdir (12) -
$ srcdir (12) -
$ stderr (12) -
$ stdin (12) -
$ stdout (12) -
$ topdir (12) -
$ ~ (12) - % (12)
-
AI
_ V4MAPPED _ CFG (24) - ARGF (12)
- Array (12)
- BasicObject (12)
- BigDecimal (24)
- CONFIG (12)
- Complex (36)
- Converters (12)
- DATA (12)
- DEFAULT (7)
- DefaultLoader (12)
- DelegateClass (12)
- Digest (12)
- File (12)
- Float (12)
- Hash (12)
- Integer (12)
- JSON (12)
- LoadError (12)
- Location (12)
- LockCommand (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - Pathname (24)
-
Profiler
_ _ (6) - Rational (12)
- Rubyの起動 (12)
- Ruby用語集 (12)
- RuntimeError (12)
-
SCRIPT
_ LINES _ _ (12) -
SO
_ ATTACH _ FILTER (24) -
SO
_ DETACH _ FILTER (24) -
SO
_ NKE (24) - String (12)
- Task (12)
- ThreadError (12)
- TracePoint (12)
- URI (12)
- UncaughtThrowError (11)
- [] (30)
-
_ _ callee _ _ (12) -
_ _ dir _ _ (12) -
_ _ method _ _ (12) - ` (12)
- abort (48)
-
add
_ filter (24) -
add
_ trace _ func (12) - alert (12)
-
alias
_ method (12) - ancestors (12)
-
arg
_ config (12) -
assert
_ throws (1) -
at
_ exit (12) - autoload (24)
- autoload? (24)
-
backtrace
_ locations (24) - bigdecimal (12)
-
bind
_ call (12) - binding (12)
- binread (12)
- binwrite (12)
-
block
_ given? (12) - call (12)
- callcc (12)
- caller (36)
-
caller
_ locations (24) - catch (24)
-
cc
_ command (12) -
check
_ signedness (24) -
check
_ sizeof (24) - chmod (12)
- chomp (12)
- chop (12)
- class (12)
-
class
_ eval (24) -
class
_ variables (12) - command (12)
-
const
_ defined? (12) - constants (24)
- convert (12)
-
convertible
_ int (24) - cp (12)
-
cpp
_ command (12) - create (22)
-
create
_ header (12) -
create
_ makefile (12) -
create
_ tmpsrc (12) - crit (12)
- debug (12)
-
def
_ exception (6) -
defined
_ class (12) - delegate (12)
-
depend
_ rules (12) - desc (12)
- describe (1)
-
dir
_ config (12) - directory (12)
-
drb
/ extservm (12) -
dummy
_ makefile (12) -
egrep
_ cpp (24) - emerg (12)
-
enable
_ config (24) - err (12)
- eval (36)
- exception (24)
- exec (48)
- execute (24)
- exit (36)
- exit! (24)
- fail (36)
- file (12)
-
file
_ create (12) -
find
_ executable (12) -
find
_ header (12) -
find
_ library (24) -
find
_ type (24) -
for
_ fd (12) - foreach (24)
- fork (48)
- format (24)
- freeze (12)
- gem (12)
- getpty (24)
- gets (48)
-
global
_ variables (12) - gsub (36)
-
have
_ devel? (12) -
have
_ framework (24) -
have
_ func (24) -
have
_ header (24) -
have
_ library (24) -
have
_ macro (24) -
have
_ struct _ member (24) -
have
_ type (24) -
have
_ var (24) - help (12)
- hex (12)
- httpd (12)
- identical? (12)
- import (12)
- include (12)
- info (12)
- inspect (12)
- install (12)
-
install
_ files (12) -
install
_ rb (12) -
instance
_ eval (24) -
instance
_ variables (12) - irb (12)
- iterator? (12)
- j (12)
- jj (12)
- kill (24)
- lambda (18)
- libpathflag (12)
-
link
_ command (12) - ln (12)
- load (12)
-
local
_ variables (12) - log (12)
-
log
_ src (12) - loop (24)
-
merge
_ libs (12) - method (12)
-
minitest
/ autorun (12) -
minitest
/ unit (1) - mkdir (12)
- mkmf (12)
- modified? (12)
-
module
_ eval (24) - multitask (12)
-
must
_ throw (1) - mv (12)
- namespace (12)
- new (90)
- next (12)
- notice (12)
- oct (12)
- open (174)
- open-uri (6)
-
open
_ uri (24) - owner (24)
- p (12)
- path (12)
- popen (168)
- popen3 (24)
- pp (24)
-
pretty
_ print (24) - print (24)
- printf (48)
- proc (19)
-
psych
_ y (12) -
public
_ instance _ method (12) - putc (48)
- puts (24)
- raise (48)
- rand (84)
-
rb
_ String (12) -
rb
_ exec _ end _ proc (12) -
rb
_ f _ array (12) -
rb
_ f _ float (12) -
rb
_ f _ hash (12) -
rb
_ f _ integer (12) -
rb
_ f _ string (12) -
rb
_ load (12) - read (36)
- readline (48)
- readlines (84)
- rect (12)
- rectangular (12)
-
remove
_ const (12) - reopen (60)
- require (24)
-
require
_ relative (12) - rm (12)
-
rm
_ f (12) -
rm
_ rf (12) - rmdir (12)
- ruby (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 8 . 5 feature (12) -
ruby 1
. 9 feature (12) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ custom _ require (12) - rule (12)
-
run
_ config (6) - sample (48)
- scanf (24)
- select (24)
- send (24)
-
set
_ close _ on _ exec (12) -
set
_ trace _ func (36) -
setup
_ argv (1) - sh (12)
- shuffle! (24)
-
singleton
_ method (12) - skip (1)
- sleep (24)
- spawn (84)
- sprintf (12)
- sprintf フォーマット (12)
- srand (48)
- status (12)
- sub (24)
- syscall (12)
- sysopen (12)
- system (48)
- tag (11)
- task (12)
- terminate (12)
- test (42)
- throw (12)
- time (12)
- timeout (37)
-
to
_ a (48) -
to
_ ary (12) -
to
_ f (12) -
to
_ i (12) -
to
_ int (12) -
to
_ r (12) -
to
_ s (24) -
to
_ str (12) - touch (12)
-
trace
_ var (36) - tracer (12)
- trap (24)
-
try
_ compile (24) -
try
_ constant (24) -
try
_ cpp (24) -
try
_ do (24) -
try
_ func (24) -
try
_ link (24) -
try
_ run (24) -
try
_ static _ assert (24) -
try
_ type (24) -
try
_ var (24) - ubygems (4)
-
untrace
_ var (12) - value (11)
- verbose= (12)
-
wait
_ writable (12) - warn (30)
- warning (12)
-
webrick
/ https (12) -
webrick
/ httpservlet (12) -
with
_ config (24) -
with
_ werror (24) - write (24)
- xmp (12)
- xpopen (24)
- xsystem (12)
- y (12)
- このマニュアルのヘルプ (12)
- クラス/メソッドの定義 (12)
- セキュリティモデル (12)
- 制御構造 (12)
- 変数と定数 (12)
- 手続きオブジェクトの挙動の詳細 (12)
- 環境変数 (12)
- 終了処理 (12)
検索結果
先頭5件
-
Kernel (44000.0)
-
全てのクラスから参照できるメソッドを定義しているモジュール。 Object クラスはこのモジュールをインクルードしています。
...全てのクラスから参照できるメソッドを定義しているモジュール。
Object クラスはこのモジュールをインクルードしています。
Object クラスのメソッドは実際にはこのモジュールで定義されていま
す。これはトップレベルで... -
Kernel
# create _ header(header = "extconf . h") -> String (33332.0) -
Kernel#have_func, Kernel#have_header などの検査結果を元に、 ヘッダファイルを生成します。
...
Kernel#have_func, Kernel#have_header などの検査結果を元に、
ヘッダファイルを生成します。
このメソッドは extconf.rb の最後で呼び出すようにしてください。
@param header ヘッダファイルの名前を指定します。
@return ヘッダファイ......# extconf.rb
require 'mkmf'
have_func('realpath')
have_header('sys/utime.h')
create_header
create_makefile('foo')
上の extconf.rb は以下の extconf.h を生成します。
#ifndef EXTCONF_H
#define EXTCONF_H
#define HAVE_REALPATH 1
#define HAVE_SYS_UTIME_H 1
#endif... -
Kernel
# convertible _ int(type , headers = nil , opts = nil) (30200.0) -
Returns the convertible integer type of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. _Convertible_ means actually same type, or typedefed from same type. If the +type+ is a integer type and _convertible_ type is found, following macros are passed as preprocessor constants to the compiler using the +type+ name, in uppercase. * 'TYPEOF_', followed by the +type+ name, followed by '=X' where 'X' is the found _convertible_ type name. * 'TYP2NUM' and 'NUM2TYP, where 'TYP' is the +type+ name in uppercase with replacing '_t' suffix with 'T', followed by '=X' where 'X' is the macro name to convert +type+ to +Integer+ object, and vice versa. For example, if foobar_t is defined as unsigned long, then convertible_int("foobar_t") would return "unsigned long", and define macros: #define TYPEOF_FOOBAR_T unsigned long #define FOOBART2NUM ULONG2NUM #define NUM2FOOBART NUM2ULONG
...Returns the convertible integer type of the given +type+. You may
optionally specify additional +headers+ to search in for the +type+.
_Convertible_ means actually same type, or typedefed from same type.
If the +type+ is a integer type and _convertible_ type is found,
following macros are p......assed as preprocessor constants to the
compiler using the +type+ name, in uppercase.
* 'TYPEOF_', followed by the +type+ name, followed by '=X' where 'X'
is the found _convertible_ type name. * 'TYP2NUM' and 'NUM2TYP,
where 'TYP' is the +type+ name in uppercase with replacing '_t'
suff......ollowed by '=X' where 'X' is the macro name to
convert +type+ to +Integer+ object, and vice versa.
For example, if foobar_t is defined as unsigned long, then
convertible_int("foobar_t") would return "unsigned long", and define
macros:
#define TYPEOF_FOOBAR_T unsigned long
#define FOO... -
Kernel
# convertible _ int(type , headers = nil , opts = nil) { . . . } (30200.0) -
Returns the convertible integer type of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. _Convertible_ means actually same type, or typedefed from same type. If the +type+ is a integer type and _convertible_ type is found, following macros are passed as preprocessor constants to the compiler using the +type+ name, in uppercase. * 'TYPEOF_', followed by the +type+ name, followed by '=X' where 'X' is the found _convertible_ type name. * 'TYP2NUM' and 'NUM2TYP, where 'TYP' is the +type+ name in uppercase with replacing '_t' suffix with 'T', followed by '=X' where 'X' is the macro name to convert +type+ to +Integer+ object, and vice versa. For example, if foobar_t is defined as unsigned long, then convertible_int("foobar_t") would return "unsigned long", and define macros: #define TYPEOF_FOOBAR_T unsigned long #define FOOBART2NUM ULONG2NUM #define NUM2FOOBART NUM2ULONG
...Returns the convertible integer type of the given +type+. You may
optionally specify additional +headers+ to search in for the +type+.
_Convertible_ means actually same type, or typedefed from same type.
If the +type+ is a integer type and _convertible_ type is found,
following macros are p......assed as preprocessor constants to the
compiler using the +type+ name, in uppercase.
* 'TYPEOF_', followed by the +type+ name, followed by '=X' where 'X'
is the found _convertible_ type name. * 'TYP2NUM' and 'NUM2TYP,
where 'TYP' is the +type+ name in uppercase with replacing '_t'
suff......ollowed by '=X' where 'X' is the macro name to
convert +type+ to +Integer+ object, and vice versa.
For example, if foobar_t is defined as unsigned long, then
convertible_int("foobar_t") would return "unsigned long", and define
macros:
#define TYPEOF_FOOBAR_T unsigned long
#define FOO... -
Kernel
# find _ header(header , *paths) -> bool (30200.0) -
与えられた paths から header を検索し、見つかった場合は真を返します。 そうでない場合は偽を返します。
...header を検索し、見つかった場合は真を返します。
そうでない場合は偽を返します。
ヘッダが見つかったディレクトリをコンパイラに渡すコマンドラインオプショ
ンに追加します(-I オプションを経由します)。
@param header... -
Kernel
# try _ static _ assert(expr , headers = nil , opt = "") -> bool (30200.0) -
@todo ???
...@todo ???
...
@param expr C 言語の式を指定します。
@param headers 追加のヘッダファイルを指定します。
@param opt コンパイラに渡すオプションを指定します。
$CFLAGS もコンパイラには渡されます。... -
Kernel
# try _ static _ assert(expr , headers = nil , opt = "") { . . . } -> bool (30200.0) -
@todo ???
...@todo ???
...
@param expr C 言語の式を指定します。
@param headers 追加のヘッダファイルを指定します。
@param opt コンパイラに渡すオプションを指定します。
$CFLAGS もコンパイラには渡されます。... -
Kernel
. # Integer(arg , base = 0) -> Integer (30200.0) -
引数を整数 (Fixnum,Bignum) に変換した結果を返します。
...に対しては arg.to_int, arg.to_i を
この順に使用して変換します。
@param arg 変換対象のオブジェクトです。
@param base 基数として0か2から36の整数を指定します(引数argに文字列を指
定した場合のみ)。省略するか0を指定......数) です。
@raise ArgumentError 整数と見なせない文字列を引数に指定した場合に発生します。
@raise TypeError メソッド to_int, to_i を持たないオブジェクトを引数に指定したか、to_int, to_i
が整数(Integerのサブクラス)を返さ......@raise TypeError 引数に nil を指定した場合に発生します。
//emlist[例][ruby]{
p Integer(4) #=> 4
p Integer(4_000) #=> 4000
p Integer(9.88) #=> 9
p Integer(nil) # can't convert nil into Integer (TypeError)
p Integer(Object.new) # cannot convert Object in... -
Kernel
. # Integer(arg , base = 0 , exception: true) -> Integer | nil (30200.0) -
引数を整数 に変換した結果を返します。
...に対しては arg.to_int, arg.to_i を
この順に使用して変換します。
@param arg 変換対象のオブジェクトです。
@param base 基数として0か2から36の整数を指定します(引数argに文字列を指
定した場合のみ)。省略するか0を指定......です。
@param exception false を指定すると、変換できなかった場合、
例外を発生する代わりに nil を返します。
@raise ArgumentError 整数と見なせない文字列を引数に指定した場合に発生します。
@raise TypeError メソッド......(Integerのサブクラス)を返さなかった場合に発生します。
@raise TypeError 引数に nil を指定した場合に発生します。
//emlist[例][ruby]{
p Integer(4) #=> 4
p Integer(4_000) #=> 4000
p Integer(9.88) #=> 9
p Integer(nil) # can't convert ni... -
Kernel
. # caller(range) -> [String] | nil (30118.0) -
start 段上の呼び出し元の情報を $@ の形式のバックトレース(文字列の配列)として返します。
...す。caller の戻り値を $@ に代入することで
例外の発生位置を設定できます。
引数で指定した値が範囲外の場合は nil を返します。
@param start long の範囲を超えない正の整数でスタックレベルを指定します。
@param length 取得す......m 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
end
ba......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...