ライブラリ
キーワード
- DelegateClass (13)
- Digest (13)
- JSON (13)
-
arg
_ config (13) -
cc
_ command (13) -
check
_ signedness (26) -
check
_ sizeof (26) - chmod (13)
-
convertible
_ int (26) - cp (13)
-
cpp
_ command (13) -
create
_ header (13) -
create
_ makefile (13) -
create
_ tmpsrc (13) -
depend
_ rules (13) -
dir
_ config (13) -
dummy
_ makefile (13) -
egrep
_ cpp (26) -
enable
_ config (26) -
find
_ executable (13) -
find
_ header (13) -
find
_ library (26) -
find
_ type (26) - gem (13)
-
have
_ const (26) -
have
_ devel? (13) -
have
_ framework (26) -
have
_ func (26) -
have
_ header (26) -
have
_ library (26) -
have
_ macro (26) -
have
_ struct _ member (26) -
have
_ type (26) -
have
_ var (26) - help (13)
- httpd (13)
- install (13)
-
install
_ files (13) -
install
_ rb (13) - j (13)
- jj (13)
- libpathflag (13)
-
link
_ command (13) - ln (13)
-
log
_ src (13) -
merge
_ libs (13) - mkdir (13)
- mkmf (13)
- modified? (13)
- mv (13)
- rm (13)
-
rm
_ f (13) -
rm
_ rf (13) - rmdir (13)
- scanf (12)
- timeout (16)
- touch (13)
-
try
_ compile (26) -
try
_ constant (26) -
try
_ cpp (26) -
try
_ do (26) -
try
_ func (26) -
try
_ link (26) -
try
_ run (26) -
try
_ static _ assert (26) -
try
_ type (26) -
try
_ var (26) -
wait
_ writable (13) -
with
_ config (26) -
with
_ werror (26) - xmp (13)
- xpopen (26)
- xsystem (13)
- y (13)
検索結果
先頭5件
-
Kernel
# DelegateClass(superclass) -> object (2.0) -
クラス superclass のインスタンスへメソッドを委譲するクラスを定義し、そのクラスを返します。
クラス superclass のインスタンスへメソッドを委譲するクラスを定義し、そのクラスを返します。
- **param** `superclass` -- 委譲先となるクラス
```ruby title="例"
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 (2.0) -
"MD5"や"SHA1"などのダイジェストを示す文字列 name を指定し、対応するダイジェストのクラスを取得します。
...c:Digest::MD5]などを直接呼び出すと問題があるときはこのメソッドを使うか、起動時に使用するライブラリを [m:Kernel?.require] してください。
- **param** `name` -- "MD5"や"SHA1"などのダイジェストを示す文字列を指定します。
- **return... -
Kernel
# JSON(object , options = {}) -> object (2.0) -
第一引数に与えられたオブジェクトの種類によって Ruby のオブジェクトか JSON 形式の文字列を返します。
第一引数に与えられたオブジェクトの種類によって Ruby のオブジェクトか JSON 形式の文字列を返します。
第一引数に文字列のようなオブジェクトを指定した場合は、それを [m:JSON?.parse] を用いてパースした結果を返します。
そうでないオブジェクトを指定した場合は、それを [m:JSON?.generate] を用いて変換した結果を返します。
- **param** `object` -- 任意のオブジェクトを指定します。
- **param** `options` -- [m:JSON?.parse], [m:JSON?.generate] に渡すオプションを指定しま... -
Kernel
# arg _ config(config , default) { . . . } -> object | String | true | nil (2.0) -
configure オプション --config の値を返します。
configure オプション --config の値を返します。
- **param** `config` -- オプションを文字列で指定します。
- **param** `default` -- 引数 config で指定したオプションのデフォルト値を指定します。
- **return** -- オプションが指定されてた場合は true を、指定されなかった場合は
nil を返します。
引数 default、あるいはブロックを指定すると、オプションが指定されていない場合に引数 default の値かブロックの評価結果を返します
(両方... -
Kernel
# cc _ command(opt = "") -> String (2.0) -
実際にコンパイルする際に使用するコマンドを返します。
実際にコンパイルする際に使用するコマンドを返します。
- **param** `opt` -- コンパイラに与える追加のコマンドライン引数を指定します。
- **SEE** [m:RbConfig.expand] -
Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil (2.0) -
```text 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. ```
```text
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 'SIGNEDN... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) { . . . } -> "signed" | "unsigned" | nil (2.0) -
```text 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. ```
```text
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 'SIGNEDN... -
Kernel
# check _ sizeof(type , headers = nil) -> Integer | nil (2.0) -
与えられた型のサイズを返します。
与えられた型のサイズを返します。
型 type がシステムに存在する場合は、グローバル変数 [m:$defs] に
"-DSIZEOF_type=X" を追加し、型のサイズを返します。型 type がシステムに存在しない場合は、nil を返します。
例えば、
```ruby
require 'mkmf'
p check_sizeof('mystruct') # => 12
```
である場合、SIZEOF_MYSTRUCT=12 というプリプロセッサマクロをコンパイラに渡します。
- **param** `type` -- 検査したい型を指定します。
- **param** `h...
