別のキーワード
種類
- モジュール関数 (824)
- 変数 (811)
- インスタンスメソッド (444)
- 定数 (12)
ライブラリ
- English (240)
- ビルトイン (1231)
- bigdecimal (24)
- delegate (12)
- digest (12)
- mkmf (468)
- open-uri (8)
- rake (72)
- rubygems (12)
-
rubygems
/ timer (12)
キーワード
-
$ " (12) -
$ $ (12) -
$ & (12) -
$ & # 39; (12) -
$ * (12) -
$ + (12) -
$ , (12) -
$ -0 (12) -
$ -F (12) -
$ -I (12) -
$ -i (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) -
$ ARGV (12) -
$ CFLAGS (12) -
$ DEBUG (12) -
$ ERROR _ POSITION (12) -
$ FIELD _ SEPARATOR (12) -
$ FILENAME (12) -
$ FS (12) -
$ IGNORECASE (12) -
$ INPUT _ LINE _ NUMBER (12) -
$ INPUT _ RECORD _ SEPARATOR (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) -
$ \ (12) -
$ _ (12) -
$ ` (12) -
$ archdir (12) -
$ defs (12) -
$ hdrdir (12) -
$ libdir (12) -
$ libs (12) -
$ sitearchdir (12) -
$ sitelibdir (12) -
$ srcdir (12) -
$ topdir (12) - Array (12)
- BigDecimal (24)
- CONFIG (12)
- DelegateClass (12)
- Digest (12)
- Float (12)
- Hash (12)
- Integer (12)
- String (12)
-
_ _ dir _ _ (12) - ` (12)
- abort (12)
-
arg
_ config (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)
-
cpp
_ command (12) -
create
_ header (12) -
create
_ makefile (12) -
create
_ tmpsrc (12) - desc (12)
-
dir
_ config (12) -
dummy
_ makefile (12) -
egrep
_ cpp (24) -
enable
_ config (24) - exec (24)
- fail (24)
- file (12)
-
file
_ create (12) -
find
_ executable (12) - fork (24)
- format (12)
- gem (12)
- gets (12)
-
global
_ variables (12) - gsub (36)
- iterator? (12)
- libpathflag (12)
-
link
_ command (12) -
log
_ src (12) -
merge
_ libs (12) - modified? (12)
- multitask (12)
- open (8)
- p (12)
- print (12)
- printf (24)
- puts (12)
- raise (24)
- rand (24)
- readline (12)
- readlines (12)
- rule (12)
- sleep (24)
- spawn (48)
- sprintf (12)
- srand (24)
- sub (24)
- syscall (12)
- system (24)
- task (12)
- test (24)
- throw (12)
- time (12)
-
trace
_ var (12) - trap (24)
-
try
_ constant (24) -
untrace
_ var (12) - warn (12)
-
with
_ config (24)
検索結果
先頭5件
- Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil - Kernel
# check _ signedness(type , headers = nil , opts = nil) { . . . } -> "signed" | "unsigned" | nil - Kernel
# gem(gem _ name , *version _ requirements) -> bool - Kernel
. # BigDecimal(s) -> BigDecimal - Kernel
. # BigDecimal(s , exception: true) -> BigDecimal | nil
-
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.
...turns 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_......s 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.... -
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.
...turns 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_......s 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.... -
Kernel
# gem(gem _ name , *version _ requirements) -> bool (6201.0) -
$LOAD_PATH に Ruby Gem を追加します。
...Ruby Gem を追加します。
指定された Gem をロードする前にその Gem が必要とする Gem をロードします。
バージョン情報を省略した場合は、最も高いバージョンの Gem をロードします。
指定された Gem やその Gem が必要とする Gem......が見つからなかった場合は
Gem::LoadError が発生します。
バージョンの指定方法に関しては Gem::Version を参照してください。
rubygems ライブラリがライブラリバージョンの衝突を検出しない限り、
gem メソッドは全ての require メ......。
=== 環境変数 GEM_SKIP
特定の Gem をロードしないようにするために環境変数 GEM_SKIP を定義することができます。
特定の Gem がまだインストールされていないという状況を試すために使用できます。
例:
GEM_SKIP=libA:libB ruby-... -
Kernel
. # BigDecimal(s) -> BigDecimal (6201.0) -
引数で指定した値を表す BigDecimal オブジェクトを生成します。
...引数で指定した値を表す BigDecimal オブジェクトを生成します。
@param s 数値を表現する初期値を文字列、Integer、
Float、Rational、BigDecimal オブジェクトのい
ずれかで指定します。
文字列中のスペースは無......ような割り算を実行するとき等に意味を持ちます。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1") / BigDecimal("3") # => 0.333333333333333333e0
BigDecimal("1",10) / BigDecimal("3",10) # => 0.333333333333333333e0
//}
ただし、個々の演算における最......いは将来のバー
ジョンで若干変更される可能性があります。
@raise ArgumentError s に Float オブジェクトを指定し、n に
Float::DIG + 2 以上の値を指定した場合に発生します。
s に Float、Rational... -
Kernel
. # BigDecimal(s , exception: true) -> BigDecimal | nil (6201.0) -
引数で指定した値を表す BigDecimal オブジェクトを生成します。
...引数で指定した値を表す BigDecimal オブジェクトを生成します。
@param s 数値を表現する初期値を文字列、Integer、
Float、Rational、BigDecimal オブジェクトのい
ずれかで指定します。
文字列中のスペースは無......ような割り算を実行するとき等に意味を持ちます。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1") / BigDecimal("3") # => 0.333333333333333333e0
BigDecimal("1",10) / BigDecimal("3",10) # => 0.333333333333333333e0
//}
ただし、個々の演算における最......かった場合、
例外を発生する代わりに nil を返します。
@raise ArgumentError s に Float オブジェクトを指定し、n に
Float::DIG + 2 以上の値を指定した場合に発生します。
s に Float、Rational... -
Kernel
. # BigDecimal(s , n) -> BigDecimal (6201.0) -
引数で指定した値を表す BigDecimal オブジェクトを生成します。
...引数で指定した値を表す BigDecimal オブジェクトを生成します。
@param s 数値を表現する初期値を文字列、Integer、
Float、Rational、BigDecimal オブジェクトのい
ずれかで指定します。
文字列中のスペースは無......ような割り算を実行するとき等に意味を持ちます。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1") / BigDecimal("3") # => 0.333333333333333333e0
BigDecimal("1",10) / BigDecimal("3",10) # => 0.333333333333333333e0
//}
ただし、個々の演算における最......いは将来のバー
ジョンで若干変更される可能性があります。
@raise ArgumentError s に Float オブジェクトを指定し、n に
Float::DIG + 2 以上の値を指定した場合に発生します。
s に Float、Rational... -
Kernel
. # BigDecimal(s , n , exception: true) -> BigDecimal | nil (6201.0) -
引数で指定した値を表す BigDecimal オブジェクトを生成します。
...引数で指定した値を表す BigDecimal オブジェクトを生成します。
@param s 数値を表現する初期値を文字列、Integer、
Float、Rational、BigDecimal オブジェクトのい
ずれかで指定します。
文字列中のスペースは無......ような割り算を実行するとき等に意味を持ちます。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1") / BigDecimal("3") # => 0.333333333333333333e0
BigDecimal("1",10) / BigDecimal("3",10) # => 0.333333333333333333e0
//}
ただし、個々の演算における最......かった場合、
例外を発生する代わりに nil を返します。
@raise ArgumentError s に Float オブジェクトを指定し、n に
Float::DIG + 2 以上の値を指定した場合に発生します。
s に Float、Rational... -
Kernel
. # Integer(arg , base = 0) -> Integer (6201.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 (6201.0) -
引数を整数 (Fixnum,Bignum) に変換した結果を返します。
...引数を整数
(Fixnum,Bignum)
に変換した結果を返します。
引数が数値の場合は直接変換し(小数点以下切り落とし)、
文字列の場合は、進数を表す接頭辞を含む整数表現とみなせる文字列のみ
変換します。
数値と文字列以外......のオブジェクトに対しては arg.to_int, arg.to_i を
この順に使用して変換します。
@param arg 変換対象のオブジェクトです。
@param base 基数として0か2から36の整数を指定します(引数argに文字列を指
定した場合のみ)。省略......nil を返します。
@raise ArgumentError 整数と見なせない文字列を引数に指定した場合に発生します。
@raise TypeError メソッド to_int, to_i を持たないオブジェクトを引数に指定したか、to_int, to_i
が整数(Integerのサブクラス)を返さな......字列以外のオブジェクトに対しては arg.to_int, arg.to_i を
この順に使用して変換します。
@param arg 変換対象のオブジェクトです。
@param base 基数として0か2から36の整数を指定します(引数argに文字列を指
定した場合の......{
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 into Integer (TypeError)
p Integer("10") #=> 10
p Integer("10", 2) #=> 2
p Integer("0d1... -
Kernel
. # binding -> Binding (6201.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
# DelegateClass(superclass) -> object (6101.0) -
クラス superclass のインスタンスへメソッドを委譲するクラスを定義し、 そのクラスを返します。
...クラスを定義し、
そのクラスを返します。
@param superclass 委譲先となるクラス
例:
//emlist{
require 'delegate'
class ExtArray < DelegateClass(Array)
def initialize
super([])
end
end
a = ExtArray.new
p a.class # => ExtArray
a.push 25
p a # => [25]
//}... -
Kernel
# Digest(name) -> object (6101.0) -
"MD5"や"SHA1"などのダイジェストを示す文字列 name を指定し、 対応するダイジェストのクラスを取得します。
...Digest::MD5などを直接呼び出すと問題があるときはこのメソッドを使
うか、起動時に使用するライブラリを Kernel.#require してください。
@param name "MD5"や"SHA1"などのダイジェストを示す文字列を指定します。
@return Digest::MD5やDige......スタンスではなく、クラスを返します。注意してください。
例: Digest::MD、Digest::SHA1、Digest::SHA512のクラス名を順番に出力する。
require 'digest'
for a in ["MD5", "SHA1", "SHA512"]
p Digest(a) # => Digest::MD5, Digest::SHA1, Digest::SHA512
end...