ライブラリ
- ビルトイン (660)
- delegate (11)
- digest (11)
- e2mmap (6)
-
irb
/ cmd / load (11) -
irb
/ xmp (11) - json (22)
-
minitest
/ unit (1) - mkmf (561)
- open-uri (22)
- openssl (22)
- pathname (11)
- pp (11)
- psych (22)
- rake (33)
-
rubygems
/ custom _ require (11) - scanf (12)
- shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) - stringio (66)
- timeout (8)
- un (66)
- zlib (44)
クラス
-
ARGF
. class (68) - Array (44)
- BasicObject (22)
- Binding (11)
- Exception (22)
- IO (77)
-
IRB
:: ExtendCommand :: Load (11) - LoadError (11)
- Module (121)
- Object (132)
-
OpenSSL
:: BN (11) - Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - String (67)
- StringIO (66)
- SystemExit (11)
- Thread (66)
- TracePoint (11)
- UncaughtThrowError (20)
-
Zlib
:: GzipWriter (44)
モジュール
- Exception2MessageMapper (6)
- Kernel (767)
-
MiniTest
:: Assertions (1) -
OpenSSL
:: Buffering (11) -
OpenURI
:: OpenRead (22)
キーワード
- % (11)
- DelegateClass (11)
- Digest (11)
- JSON (11)
- Pathname (11)
- [] (18)
-
add
_ trace _ func (11) - ancestors (11)
- autoload (11)
-
cc
_ command (11) -
check
_ signedness (22) -
check
_ sizeof (22) - class (11)
-
class
_ eval (22) -
const
_ defined? (11) - constants (11)
-
convertible
_ int (22) - cp (11)
-
cpp
_ command (11) -
create
_ makefile (11) -
create
_ tmpsrc (11) -
defined
_ class (11) -
depend
_ rules (11) - desc (11)
-
egrep
_ cpp (22) - eval (11)
- exception (22)
- execute (11)
- exit (11)
-
find
_ executable (11) -
find
_ header (11) -
find
_ library (22) -
find
_ type (22) - freeze (11)
- gets (24)
-
have
_ header (22) -
have
_ macro (22) -
have
_ struct _ member (22) -
have
_ type (22) - help (11)
- hex (11)
- httpd (11)
- import (11)
- include (11)
- inspect (11)
- install (11)
-
install
_ files (11) -
instance
_ eval (22) -
instance
_ variables (11) - j (11)
- kill (11)
- libpathflag (11)
-
link
_ command (11) - method (11)
- mkdir (11)
-
module
_ eval (22) - namespace (11)
- oct (11)
- open (22)
- path (11)
-
pretty
_ print (22) - print (55)
- printf (55)
-
psych
_ y (11) -
public
_ instance _ method (11) - putc (33)
- puts (44)
- raise (11)
-
remove
_ const (11) - reopen (55)
- require (11)
- rmdir (11)
- sample (44)
- scanf (12)
- send (22)
-
set
_ trace _ func (11) - skip (1)
- status (11)
- tag (10)
- terminate (11)
- test (18)
- timeout (8)
-
to
_ a (11) -
to
_ ary (11) -
to
_ f (11) -
to
_ i (11) -
to
_ int (11) -
to
_ str (11) -
try
_ compile (22) -
try
_ constant (22) -
try
_ cpp (22) -
try
_ do (22) -
try
_ link (22) -
try
_ run (22) -
try
_ static _ assert (22) -
try
_ type (22) - value (10)
-
with
_ werror (22) - xmp (11)
- xpopen (22)
- xsystem (11)
- y (11)
検索結果
先頭5件
-
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] を指定して探し……
というように、リンク可能なライブラリを探索します。
上記......します。
paths を指定しないときは 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] を指定して探し……
というように、リンク可能なライブラリを探索します。
上記......します。
paths を指定しないときは 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
preprocessor 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
preprocessor 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 追加のヘッダファイルを指定します。...