503件ヒット
[1-100件を表示]
(0.082秒)
種類
- モジュール関数 (261)
- インスタンスメソッド (176)
- 変数 (55)
- 定数 (11)
ライブラリ
- English (22)
- ビルトイン (255)
- bigdecimal (12)
- continuation (11)
- json (11)
- mkmf (132)
- open-uri (16)
- rake (22)
- rubygems (11)
- timeout (11)
キーワード
-
$ ! (11) -
$ -d (11) -
$ DEBUG (11) -
$ ERROR _ INFO (11) -
$ ERROR _ POSITION (11) - BigDecimal (12)
- CONFIG (11)
- Complex (12)
- Float (6)
- Integer (6)
- JSON (11)
- Rational (11)
-
arg
_ config (11) - autoload (11)
- autoload? (11)
- callcc (11)
-
caller
_ locations (22) -
create
_ header (11) - desc (11)
-
dir
_ config (11) -
enable
_ config (22) - exec (44)
-
file
_ create (11) - gem (11)
- open (16)
- spawn (44)
- syscall (11)
- system (44)
- timeout (11)
-
try
_ constant (22) -
try
_ link (22) -
with
_ config (22)
検索結果
先頭5件
- Kernel
# enable _ config(config , default) {|config , default| . . . } -> bool | String - Kernel
# with _ config(config , default = nil) {|config , default| . . . } -> bool | String - Kernel
. # Rational(x , y = 1 , exception: true) -> Rational | nil - Kernel
# dir _ config(target , idefault = nil , ldefault = nil) -> [String , String] - Kernel
# JSON(object , options = {}) -> object
-
Kernel
# enable _ config(config , default) {|config , default| . . . } -> bool | String (6401.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
# with _ config(config , default = nil) {|config , default| . . . } -> bool | String (6401.0) -
configure のオプションを検査します。
...configure のオプションを検査します。
configure のオプションに --with-<config> が指定された場合は真を返しま
す。--without-<config> が指定された場合は偽を返します。どちらでもない場
合は default を返します。
これはデバッグ情......定義を、追加するのに役立ちます。
@param config configure のオプションの名前を指定します。
@param default デフォルト値を返します。
例
require 'mkmf'
if with_config("debug")
$defs.push("-DOSSL_DEBUG") unless $defs.include? "-DOSSL_DEBUG"
end... -
Kernel
. # Rational(x , y = 1 , exception: true) -> Rational | nil (6401.0) -
引数を有理数(Rational)に変換した結果を返します。
...有理数(Rational)に変換した結果を返します。
@param x 変換対象のオブジェクトです。
@param y 変換対象のオブジェクトです。省略した場合は x だけを用いて
Rational オブジェクトを作成します。
@param exception false を指定......x/y した Rational オブジェクトを
返します。
//emlist[例][ruby]{
Rational("1/3") # => (1/3)
Rational(1, 3) # => (1/3)
Rational("0.1", "0.3") # => (1/3)
Rational(Complex(1,2), 2) # => ((1/2)+(1/1)*i)
//}
ただし、1.8系とは異なり、Rational オブジェ......クトは常に既約(それ以上
約分できない状態)である事に注意してください。
//emlist[例][ruby]{
Rational(2, 6) # => (1/3)
Rational(1, 3) * 3 # => (1/1)
//}
引数に文字列を指定する場合、以下のいずれかの形式で指定します。
* "1/3... -
Kernel
# dir _ config(target , idefault = nil , ldefault = nil) -> [String , String] (6369.0) -
configure オプション --with-TARGET-dir, --with-TARGET-include, --with-TARGET-lib をユーザが extconf.rb に指定できるようにします。
...configure オプション
--with-TARGET-dir,
--with-TARGET-include,
--with-TARGET-lib
をユーザが extconf.rb に指定できるようにします。
--with-TARGET-dir オプションは
システム標準ではない、
ヘッダファイルやライブラリがあるディレクトリをま......とめて指定するために使います。
ユーザが extconf.rb に --with-TARGET-dir=PATH を指定したときは
$CFLAGS に "-IPATH/include" を、
$LDFLAGS に "-LPATH/lib" を、
それぞれ追加します。
--with-TARGET-include オプションは
システム標準ではないヘッ......extconf.rb に --with-TARGET-include=PATH を指定したときは
$CFLAGS に PATH を追加します。
--with-TARGET-lib オプションは
システム標準ではないライブラリのディレクトリを指定するために使います。
ユーザが extconf.rb に --with-TARGET-lib=PAT... -
Kernel
# JSON(object , options = {}) -> object (6301.0) -
第一引数に与えられたオブジェクトの種類によって Ruby のオブジェクトか JSON 形式の文字列を返します。
...ェクトか JSON 形式の文字列を返します。
第一引数に文字列のようなオブジェクトを指定した場合は、それを JSON.#parse を用いてパースした結果を返します。
そうでないオブジェクトを指定した場合は、それを JSON.#generate を......ジェクトを指定します。
@param options JSON.#parse, JSON.#generate に渡すオプションを指定します。
//emlist[例][ruby]{
require "json"
JSON('[1,2,{"name":"tanaka","age":19}]')
# => [1, 2, {"name"=>"tanaka", "age"=>19}]
JSON('[1,2,{"name":"tanaka","age":19}]', symbolize_na......mes: true)
# => [1, 2, {:name=>"tanaka", :age=>19}]
//}
@see JSON.#parse, JSON.#generate... -
Kernel
# arg _ config(config , default) { . . . } -> object | String | true | nil (6301.0) -
configure オプション --config の値を返します。
...configure オプション --config の値を返します。
@param config オプションを文字列で指定します。
@param default 引数 config で指定したオプションのデフォルト値を指定します。
@return オプションが指定されてた場合は true を、指定......ンに引数が指定されていた場合は指定した文字列を返します。
例えば extconf.rb で arg_config メソッドを使う場合、
$ ruby extconf.rb --foo --bar=baz
と実行したとき、arg_config("--foo") の値は true、
arg_config("--bar") の値は "baz" です。... -
Kernel
# enable _ config(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
# try _ constant(const , headers = nil , opt = "") -> Integer | nil (6301.0) -
定数 const がシステムに存在するかどうか検査します。 Kernel#have_const を使ってください。
...定数 const がシステムに存在するかどうか検査します。
Kernel#have_const を使ってください。
@param const C 言語の定数名を指定します。
@param headers 追加のヘッダファイルを指定します。
@param opt コンパイラに渡すオプションを......指定します。
$CFLAGS もコンパイラには渡されます。
@return 定数 const がシステムに存在する場合はその値を返します。
定数 const がシステムに存在しない場合は nil を返します。... -
Kernel
# try _ constant(const , headers = nil , opt = "") { . . . } -> Integer | nil (6301.0) -
定数 const がシステムに存在するかどうか検査します。 Kernel#have_const を使ってください。
...定数 const がシステムに存在するかどうか検査します。
Kernel#have_const を使ってください。
@param const C 言語の定数名を指定します。
@param headers 追加のヘッダファイルを指定します。
@param opt コンパイラに渡すオプションを......指定します。
$CFLAGS もコンパイラには渡されます。
@return 定数 const がシステムに存在する場合はその値を返します。
定数 const がシステムに存在しない場合は nil を返します。... -
Kernel
# with _ config(config , default = nil) -> bool | String (6301.0) -
configure のオプションを検査します。
...configure のオプションを検査します。
configure のオプションに --with-<config> が指定された場合は真を返しま
す。--without-<config> が指定された場合は偽を返します。どちらでもない場
合は default を返します。
これはデバッグ情......定義を、追加するのに役立ちます。
@param config configure のオプションの名前を指定します。
@param default デフォルト値を返します。
例
require 'mkmf'
if with_config("debug")
$defs.push("-DOSSL_DEBUG") unless $defs.include? "-DOSSL_DEBUG"
end...