るりまサーチ

最速Rubyリファレンスマニュアル検索!
1658件ヒット [401-500件を表示] (0.307秒)
トップページ > クエリ:Kernel.#p[x] > クエリ:$LAST_MATCH_INFO[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

ライブラリ

キーワード

検索結果

<< < ... 3 4 5 6 7 ... > >>

Kernel#create_makefile(target, srcprefix = nil) -> true (21107.0)

@todo

...@todo

Kernel
#have_library などの各種検査の結果を元に、拡張ライブラリを
ビルドするための Makefile を生成します。

extconf.rb は普通このメソッドの呼び出しで終ります。

@param target ターゲットとなる拡張ライブラリの名前を指...
...ラリを Ruby スクリプトから使用するときは
"require 'test/foo'" とする必要があります。

@param srcprefix ソースコードがあるディレクトリ名を指定します。
省略した場合は extconf.rb があるディレ...
...test/
foo.c

このようにします。

require 'mkmf'
create_makefile('test/foo', 'test')

このようにして作った Makefile で 'make install' すると拡張ライブラリは、
以下のパスにインストールされます。

/path/to/ruby/sitearchdir/test/foo.so...

Kernel#find_library(lib, func, *paths) -> bool (21107.0)

関数 func が定義されたライブラリ lib を探します。

...されたライブラリ lib を探します。

最初はパスを指定せずに探し、
それに失敗したら paths[0] を指定して探し、
それにも失敗したら paths[1] を指定して探し……
というように、リンク可能なライブラリを探索します。

上記...
...します。

p
aths を指定しないときは Kernel#have_library と同じ動作です。

@param lib ライブラリ名を指定します。

@param func 関数名を指定します。
nil または空文字列を指定した場合は "main" になります。

@param paths ライブ...

Kernel#find_library(lib, func, *paths) { ... } -> bool (21107.0)

関数 func が定義されたライブラリ lib を探します。

...されたライブラリ lib を探します。

最初はパスを指定せずに探し、
それに失敗したら paths[0] を指定して探し、
それにも失敗したら paths[1] を指定して探し……
というように、リンク可能なライブラリを探索します。

上記...
...します。

p
aths を指定しないときは Kernel#have_library と同じ動作です。

@param lib ライブラリ名を指定します。

@param func 関数名を指定します。
nil または空文字列を指定した場合は "main" になります。

@param paths ライブ...

Kernel#try_do(src, command, *opts) -> () (21107.0)

@param src C プログラムのソースコードを指定します。

...@param src C プログラムのソースコードを指定します。

@param command コマンドを指定します。

@param opts オプションを Hash で指定します。

@raise RuntimeError 開発環境がインストールされていない場合に発生します。

@see Kernel#xsyste...

Kernel#try_do(src, command, *opts) { ... } -> () (21107.0)

@param src C プログラムのソースコードを指定します。

...@param src C プログラムのソースコードを指定します。

@param command コマンドを指定します。

@param opts オプションを Hash で指定します。

@raise RuntimeError 開発環境がインストールされていない場合に発生します。

@see Kernel#xsyste...

絞り込み条件を変える

Kernel#JSON(object, options = {}) -> object (21101.0)

第一引数に与えられたオブジェクトの種類によって Ruby のオブジェクトか JSON 形式の文字列を返します。

...を JSON.#parse を用いてパースした結果を返します。
そうでないオブジェクトを指定した場合は、それを JSON.#generate を用いて変換した結果を返します。

@param object 任意のオブジェクトを指定します。

@param options JSON.#parse, JSON....
...ションを指定します。

//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_names: true)
# => [1, 2, {:name=>"tanaka", :age=>19}]
//}

@see JSON.#parse, JSON.#generate...

Kernel#cc_command(opt = "") -> String (21101.0)

実際にコンパイルする際に使用するコマンドを返します。

...実際にコンパイルする際に使用するコマンドを返します。

@param opt コンパイラに与える追加のコマンドライン引数を指定します。

@see RbConfig.expand...

Kernel#check_signedness(type, headers = nil, opts = nil) -> "signed" | "unsigned" | nil (21101.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.

...ven +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
p
reprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+
nam...
...' 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 SIGN...

Kernel#check_signedness(type, headers = nil, opts = nil) { ... } -> "signed" | "unsigned" | nil (21101.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.

...ven +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
p
reprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+
nam...
...' 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 SIGN...

Kernel#check_sizeof(type, headers = nil) -> Integer | nil (21101.0)

与えられた型のサイズを返します。

...与えられた型のサイズを返します。

型 type がシステムに存在する場合は、グローバル変数 $defs に
"-DSIZEOF_type=X" を追加し、型のサイズを返します。型 type がシステムに
存在しない場合は、nil を返します。

例えば、

requi...
...re 'mkmf'
check_sizeof('mystruct') # => 12

である場合、SIZEOF_MYSTRUCT=12 というプリプロセッサマクロをコンパイラに渡します。

@param type 検査したい型を指定します。

@param headers 追加のヘッダファイルを指定します。...

絞り込み条件を変える

<< < ... 3 4 5 6 7 ... > >>