るりまサーチ

最速Rubyリファレンスマニュアル検索!
99件ヒット [1-99件を表示] (0.095秒)

別のキーワード

  1. util u
  2. matrix u
  3. erb u
  4. encoding koi8_u
  5. _builtin koi8_u

ライブラリ

クラス

モジュール

キーワード

検索結果

JSON::State#configure(options = {}) -> self (24208.0)

与えられたハッシュで自身を設定します。

...[ruby]{
require "json"

json_state = JSON::State.new(indent: "\t")
json_state.indent # => "\t"
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"

json_state.configure(indent: " ")
json_state.indent # => " "
JSON.generate({key1: "value1...
...", key2: "value2"}, json_state)
# => "{ \"key1\":\"value1\", \"key2\":\"value2\"}"
//}

@see JSON::State.new...

Gem::Installer#build_extensions (6107.0)

拡張ライブラリをビルドします。

...拡張ライブラリをビルドします。

拡張ライブラリをビルドするためのファイルタイプとして有効であるのは、
extconf.rb, configure script, Rakefile, mkmf_files です。...

JSON::State#merge(options = {}) -> self (6008.0)

与えられたハッシュで自身を設定します。

...[ruby]{
require "json"

json_state = JSON::State.new(indent: "\t")
json_state.indent # => "\t"
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"

json_state.configure(indent: " ")
json_state.indent # => " "
JSON.generate({key1: "value1...
...", key2: "value2"}, json_state)
# => "{ \"key1\":\"value1\", \"key2\":\"value2\"}"
//}

@see JSON::State.new...

Kernel#enable_config(config, default) {|config, default| ... } -> bool | String (229.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 (229.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#dir_config(target, idefault = nil, ldefault = nil) -> [String, String] (223.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 オプションは
システム標準ではない、
ヘッダファイルやライブラリがあるディレクトリをま...
..."-IPATH/include" を、
$LDFLAGS に "-LPATH/lib" を、
それぞれ追加します。

--with-TARGET-include オプションは
システム標準ではないヘッダファイルのディレクトリを指定するために使います。
ユーザが extconf.rb に --with-TARGET-include=PATH を...
...idefault システム標準ではないヘッダファイルのディレクトリのデフォルト値を指定します。

@param ldefault システム標準ではないライブラリのディレクトリのデフォルト値を指定します。


require 'mkmf'
# xml2 の configure...

Kernel#enable_config(config, default) -> bool | String (129.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) -> bool | String (129.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#arg_config(config, default) { ... } -> object | String | true | nil (117.0)

configure オプション --config の値を返します。

...
configure
オプション --config の値を返します。

@param config オプションを文字列で指定します。

@param default 引数 config で指定したオプションのデフォルト値を指定します。

@return オプションが指定されてた場合は true を、指定...
...されなかった場合は
nil を返します。
引数 default、あるいはブロックを指定すると、オプションが指定さ
れていない場合に引数 default の値かブロックの評価結果を返します
(両方指定した場合はブロ...
...ンに引数が指定されていた場合は指定した文字列を返します。

例えば extconf.rb で arg_config メソッドを使う場合、

$ ruby extconf.rb --foo --bar=baz

と実行したとき、arg_config("--foo") の値は true、
arg_config("--bar") の値は "baz" です。...