種類
- モジュール関数 (1001)
- インスタンスメソッド (991)
- 変数 (912)
- 定数 (11)
ライブラリ
- English (275)
- ビルトイン (1468)
- bigdecimal (22)
- digest (11)
-
irb
/ xmp (11) - json (33)
-
minitest
/ spec (1) - mkmf (869)
- open-uri (16)
- psych (22)
- rake (77)
- rubygems (11)
-
rubygems
/ custom _ require (11) -
rubygems
/ timer (11) - timeout (22)
- un (44)
- uri (11)
キーワード
-
$ ! (11) -
$ " (11) -
$ $ (11) -
$ & (11) -
$ & # 39; (11) -
$ * (11) -
$ + (11) -
$ , (11) -
$ -0 (11) -
$ -F (11) -
$ -I (11) -
$ -K (7) -
$ -i (11) -
$ -v (11) -
$ -w (11) -
$ . (11) -
$ / (11) -
$ 0 (11) -
$ 1 (11) -
$ 10 (11) -
$ 11 (11) -
$ 2 (11) -
$ 3 (11) -
$ 4 (11) -
$ 5 (11) -
$ 6 (11) -
$ 7 (11) -
$ 8 (11) -
$ 9 (11) -
$ : (11) -
$ ; (11) -
$ < (11) -
$ > (11) -
$ ? (11) -
$ @ (11) -
$ ARGV (11) -
$ CFLAGS (11) -
$ CHILD _ STATUS (11) -
$ DEFAULT _ INPUT (11) -
$ DEFAULT _ OUTPUT (11) -
$ ERROR _ INFO (11) -
$ ERROR _ POSITION (11) -
$ FIELD _ SEPARATOR (11) -
$ FILENAME (11) -
$ FS (11) -
$ IGNORECASE (11) -
$ INPUT _ LINE _ NUMBER (11) -
$ INPUT _ RECORD _ SEPARATOR (11) -
$ KCODE (7) -
$ LAST _ MATCH _ INFO (11) -
$ LAST _ PAREN _ MATCH (11) -
$ LAST _ READ _ LINE (11) -
$ LDFLAGS (11) -
$ LOADED _ FEATURES (11) -
$ LOAD _ PATH (11) -
$ MATCH (11) -
$ NR (11) -
$ OFS (11) -
$ ORS (11) -
$ OUTPUT _ FIELD _ SEPARATOR (11) -
$ OUTPUT _ RECORD _ SEPARATOR (11) -
$ PID (11) -
$ POSTMATCH (11) -
$ PREMATCH (11) -
$ PROCESS _ ID (11) -
$ PROGRAM _ NAME (11) -
$ RS (11) -
$ SAFE (7) -
$ VERBOSE (11) -
$ \ (11) -
$ _ (11) -
$ ` (11) -
$ archdir (11) -
$ defs (11) -
$ hdrdir (11) -
$ libdir (11) -
$ libs (11) -
$ sitearchdir (11) -
$ sitelibdir (11) -
$ srcdir (11) -
$ stdin (11) -
$ stdout (11) -
$ topdir (11) -
$ ~ (11) - BigDecimal (22)
- CONFIG (11)
- Complex (22)
- Digest (11)
- Float (6)
- Integer (11)
- JSON (11)
- Rational (11)
- String (11)
- URI (11)
-
_ _ callee _ _ (11) -
_ _ dir _ _ (11) -
_ _ method _ _ (11) - ` (11)
-
arg
_ config (11) -
at
_ exit (11) - autoload (11)
- autoload? (11)
- binding (11)
-
block
_ given? (11) - caller (33)
-
caller
_ locations (22) - catch (22)
-
cc
_ command (11) -
check
_ signedness (22) -
check
_ sizeof (22) - chomp (11)
- chop (11)
-
convertible
_ int (22) -
cpp
_ command (11) -
create
_ header (11) -
create
_ makefile (11) -
create
_ tmpsrc (11) - desc (11)
- describe (1)
-
dir
_ config (11) - directory (11)
-
dummy
_ makefile (11) -
enable
_ config (22) - eval (11)
- exec (44)
- exit (11)
- exit! (11)
- fail (33)
- file (11)
-
file
_ create (11) -
find
_ executable (11) -
find
_ header (11) -
find
_ library (22) -
find
_ type (22) - fork (22)
- format (11)
- gem (11)
- gets (11)
-
global
_ variables (11) - gsub (22)
-
have
_ func (22) -
have
_ header (22) -
have
_ library (22) -
have
_ macro (22) -
have
_ struct _ member (22) -
have
_ type (22) -
have
_ var (22) - import (11)
- install (11)
-
install
_ files (11) -
install
_ rb (11) - iterator? (11)
- j (11)
- jj (11)
- libpathflag (11)
-
link
_ command (11) - load (11)
-
local
_ variables (11) - loop (11)
-
merge
_ libs (11) - mkdir (11)
- modified? (11)
- multitask (11)
- namespace (11)
- open (38)
- print (11)
- printf (22)
-
psych
_ y (11) - puts (11)
- raise (33)
- rand (22)
- readline (11)
- readlines (11)
- require (22)
-
require
_ relative (11) -
rm
_ f (11) -
rm
_ rf (11) - rmdir (11)
- select (11)
- sleep (22)
- spawn (44)
- sprintf (11)
- srand (22)
- sub (22)
- syscall (11)
- system (44)
- test (22)
- throw (11)
- time (11)
- timeout (22)
-
trace
_ var (33) - trap (22)
-
try
_ compile (22) -
try
_ constant (22) -
try
_ func (22) -
try
_ link (22) -
try
_ run (22) -
try
_ static _ assert (22) -
try
_ type (22) -
try
_ var (22) -
untrace
_ var (11) -
wait
_ writable (11) - warn (11)
-
with
_ config (22) -
with
_ werror (22) - xmp (11)
- xpopen (11)
- xsystem (11)
- y (11)
検索結果
先頭5件
-
Kernel
. # binding -> Binding (12401.0) -
変数・メソッドなどの環境情報を含んだ Binding オブジェクトを 生成して返します。通常、Kernel.#eval の第二引数として使います。
...変数・メソッドなどの環境情報を含んだ Binding オブジェクトを
生成して返します。通常、Kernel.#eval の第二引数として使います。
//emlist[例][ruby]{
def foo
a = 1
binding
end
eval("p a", foo) #=> 1
//}
@see Kernel.#eval,Object::TOPLEVEL_BINDING... -
Kernel
$ $ INPUT _ LINE _ NUMBER -> Integer (12307.0) -
$. の別名
...$. の別名
1 e
2 f
3 g
4 h
5 i
# end of a.txt
require "English"
File.foreach(ARGV.at(0)){|line|
# read line
}
p $INPUT_LINE_NUMBER
# end of sample.rb
ruby sample.rb a.txt
#=> 5... -
Kernel
# wait _ writable -> () (12201.0) -
ファイルが書き込み可能になるまで待ちます。
...ファイルが書き込み可能になるまで待ちます。
ruby -run -e wait_writable -- [OPTION] FILE
-n RETRY リトライ回数
-w SEC リトライごとに待つ秒数
-v 詳細表示... -
Kernel
# libpathflag(libpath = $ DEFLIBPATH| $ LIBPATH) -> String (6401.0) -
与えられた libpath を -L 付きの文字列に変換して返します。
...与えられた libpath を -L 付きの文字列に変換して返します。
@param libpath LIBPATH に指定する値を指定します。... -
Kernel
. # Rational(x , y = 1 , exception: true) -> Rational | nil (6307.0) -
引数を有理数(Rational)に変換した結果を返します。
...を有理数(Rational)に変換した結果を返します。
@param x 変換対象のオブジェクトです。
@param y 変換対象のオブジェクトです。省略した場合は x だけを用いて
Rational オブジェクトを作成します。
@param exception false を指......に nil を返します。
@raise ArgumentError 変換できないオブジェクトを指定した場合に発生します。
引数 x、y の両方を指定した場合、x/y した Rational オブジェクトを
返します。
//emlist[例][ruby]{
Rational("1/3") # => (1/3)
Rational......。また、Kernel.#Integer とは違い "0x10" のような進数を表す接頭
辞を含めた指定は行えません。
//emlist[例][ruby]{
Rational("1/3") # => (1/3)
Rational("0.3") # => (3/10)
Rational('0.3E0') # => (3/10)
Rational('0.1E1/3') # => (1/3)
Rational('1.2/3... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil (6301.0) -
Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.
...eturns the signedness of the given +type+. You may optionally
specify additional +headers+ to search in for the +type+.
If the +type+ is found and is a numeric type, a macro is passed as a
preprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS_OF...... is positive integer if the +type+ is
unsigned, or negative integer if the +type+ is signed.
For example, if size_t is defined as unsigned, then
check_signedness('size_t') would returned +1 and the
SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the
compiler, and SIGNEDNESS_OF_I......NT=-1 if check_signedness('int') is
done.... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) { . . . } -> "signed" | "unsigned" | nil (6301.0) -
Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.
...eturns the signedness of the given +type+. You may optionally
specify additional +headers+ to search in for the +type+.
If the +type+ is found and is a numeric type, a macro is passed as a
preprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS_OF...... is positive integer if the +type+ is
unsigned, or negative integer if the +type+ is signed.
For example, if size_t is defined as unsigned, then
check_signedness('size_t') would returned +1 and the
SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the
compiler, and SIGNEDNESS_OF_I......NT=-1 if check_signedness('int') is
done.... -
Kernel
# enable _ config(config , default) {|config , default| . . . } -> bool | String (6301.0) -
configure のオプションを検査します。
...configure のオプションを検査します。
configure のオプションに --enable-<config> が指定された場合は、真を返し
ます。--disable-<config> が指定された場合は。偽を返します。どちらでもな
い場合は default を返します。
これはデバ......義を、追加するのに役立ちます。
@param config configure のオプションの名前を指定します。
@param default デフォルト値を返します。
例
require 'mkmf'
if enable_config("debug")
$defs.push("-DOSSL_DEBUG") unless $defs.include? "-DOSSL_DEBUG"
end... -
Kernel
# find _ executable(bin , path = nil) -> String | nil (6301.0) -
パス path から実行ファイル bin を探します。
...ら実行ファイル bin を探します。
実行ファイルが見つかった場合は、そのフルパスを返します。
実行ファイルが見つからなかった場合は、nilを返します。
このメソッドは Makefile を変更しません。
@param bin 実行ファイルの......名前を指定します。
@param path パスを指定します。デフォルトは環境変数 PATH です。
環境変数 PATH が定義されていない場合は /usr/local/bin,
/usr/ucb, /usr/bin, /bin を使います。... -
Kernel
. # Integer(arg , base = 0) -> Integer (6225.0) -
引数を整数(Fixnum,Bignum)に変換した結果を返します。
...引数を整数(Fixnum,Bignum)に変換した結果を返します。
引数が数値の場合は直接変換し(小数点以下切り落とし)、
文字列の場合は、進数を表す接頭辞を含む整数表現とみなせる文字列のみ
変換します。
数値と文字列以外......のオブジェクトに対しては arg.to_int, arg.to_i を
この順に使用して変換します。
@param arg 変換対象のオブジェクトです。
@param base 基数として0か2から36の整数を指定します(引数argに文字列を指
定した場合のみ)。省略......数) です。
@raise ArgumentError 整数と見なせない文字列を引数に指定した場合に発生します。
@raise TypeError メソッド to_int, to_i を持たないオブジェクトを引数に指定したか、to_int, to_i
が整数(Integerのサブクラス)を返... -
Kernel
. # Integer(arg , base = 0 , exception: true) -> Integer | nil (6225.0) -
引数を整数(Fixnum,Bignum)に変換した結果を返します。
...引数を整数(Fixnum,Bignum)に変換した結果を返します。
引数が数値の場合は直接変換し(小数点以下切り落とし)、
文字列の場合は、進数を表す接頭辞を含む整数表現とみなせる文字列のみ
変換します。
数値と文字列以外......のオブジェクトに対しては arg.to_int, arg.to_i を
この順に使用して変換します。
@param arg 変換対象のオブジェクトです。
@param base 基数として0か2から36の整数を指定します(引数argに文字列を指
定した場合のみ)。省略......exception false を指定すると、変換できなかった場合、
例外を発生する代わりに nil を返します。
@raise ArgumentError 整数と見なせない文字列を引数に指定した場合に発生します。
@raise TypeError メソッド to_int, to_i を...