種類
- モジュール関数 (1091)
- インスタンスメソッド (1073)
- 変数 (993)
- 定数 (12)
ライブラリ
- English (300)
- ビルトイン (1600)
- bigdecimal (24)
- digest (12)
-
irb
/ xmp (12) - json (36)
-
minitest
/ spec (1) - mkmf (948)
- open-uri (16)
- psych (24)
- rake (84)
- rubygems (12)
-
rubygems
/ custom _ require (12) -
rubygems
/ timer (12) - timeout (16)
- un (48)
- uri (12)
キーワード
-
$ ! (12) -
$ " (12) -
$ $ (12) -
$ & (12) -
$ & # 39; (12) -
$ * (12) -
$ + (12) -
$ , (12) -
$ -0 (12) -
$ -F (12) -
$ -I (12) -
$ -K (7) -
$ -i (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) -
$ ARGV (12) -
$ CFLAGS (12) -
$ CHILD _ STATUS (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 (7) -
$ 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 (7) -
$ VERBOSE (12) -
$ \ (12) -
$ _ (12) -
$ ` (12) -
$ archdir (12) -
$ defs (12) -
$ hdrdir (12) -
$ libdir (12) -
$ libs (12) -
$ sitearchdir (12) -
$ sitelibdir (12) -
$ srcdir (12) -
$ stdin (12) -
$ stdout (12) -
$ topdir (12) -
$ ~ (12) - BigDecimal (24)
- CONFIG (12)
- Complex (24)
- Digest (12)
- Float (7)
- Integer (12)
- JSON (12)
- Rational (12)
- String (12)
- URI (12)
-
_ _ callee _ _ (12) -
_ _ dir _ _ (12) -
_ _ method _ _ (12) - ` (12)
-
arg
_ config (12) -
at
_ exit (12) - autoload (12)
- autoload? (12)
- binding (12)
-
block
_ given? (12) - caller (36)
-
caller
_ locations (24) - catch (24)
-
cc
_ command (12) -
check
_ signedness (24) -
check
_ sizeof (24) - chomp (12)
- chop (12)
-
convertible
_ int (24) -
cpp
_ command (12) -
create
_ header (12) -
create
_ makefile (12) -
create
_ tmpsrc (12) - desc (12)
- describe (1)
-
dir
_ config (12) - directory (12)
-
dummy
_ makefile (12) -
enable
_ config (24) - eval (12)
- exec (48)
- exit (12)
- exit! (12)
- fail (36)
- file (12)
-
file
_ create (12) -
find
_ executable (12) -
find
_ header (12) -
find
_ library (24) -
find
_ type (24) - fork (24)
- format (12)
- gem (12)
- gets (12)
-
global
_ variables (12) - gsub (24)
-
have
_ func (24) -
have
_ header (24) -
have
_ library (24) -
have
_ macro (24) -
have
_ struct _ member (24) -
have
_ type (24) -
have
_ var (24) - import (12)
- install (12)
-
install
_ files (12) -
install
_ rb (12) - iterator? (12)
- j (12)
- jj (12)
- libpathflag (12)
-
link
_ command (12) - load (12)
-
local
_ variables (12) - loop (12)
-
merge
_ libs (12) - mkdir (12)
- modified? (12)
- multitask (12)
- namespace (12)
- open (40)
- print (12)
- printf (24)
-
psych
_ y (12) - puts (12)
- raise (36)
- rand (24)
- readline (12)
- readlines (12)
- require (24)
-
require
_ relative (12) -
rm
_ f (12) -
rm
_ rf (12) - rmdir (12)
- select (12)
- sleep (24)
- spawn (48)
- sprintf (12)
- srand (24)
- sub (24)
- syscall (12)
- system (48)
- test (24)
- throw (12)
- time (12)
- timeout (16)
-
trace
_ var (36) - trap (24)
-
try
_ compile (24) -
try
_ constant (24) -
try
_ func (24) -
try
_ link (24) -
try
_ run (24) -
try
_ static _ assert (24) -
try
_ type (24) -
try
_ var (24) -
untrace
_ var (12) -
wait
_ writable (12) - warn (12)
-
with
_ config (24) -
with
_ werror (24) - xmp (12)
- xpopen (12)
- xsystem (12)
- y (12)
検索結果
先頭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 を使います。...