種類
- インスタンスメソッド (1163)
- モジュール関数 (1067)
- 変数 (920)
- 定数 (10)
ライブラリ
- English (250)
- ビルトイン (1569)
- bigdecimal (20)
- continuation (10)
- delegate (10)
- digest (10)
-
irb
/ xmp (10) - json (30)
-
minitest
/ spec (1) - mkmf (910)
- open-uri (14)
- pathname (10)
- pp (4)
- psych (20)
- rake (90)
- rubygems (10)
-
rubygems
/ custom _ require (10) -
rubygems
/ timer (10) - scanf (12)
- timeout (20)
- un (130)
- uri (10)
キーワード
-
$ ! (10) -
$ " (10) -
$ $ (10) -
$ & (10) -
$ & # 39; (10) -
$ * (10) -
$ + (10) -
$ , (10) -
$ -0 (10) -
$ -F (10) -
$ -I (10) -
$ -K (10) -
$ -W (10) -
$ -a (10) -
$ -d (10) -
$ -i (10) -
$ -l (10) -
$ -p (10) -
$ -v (10) -
$ -w (10) -
$ . (10) -
$ / (10) -
$ 0 (10) -
$ 1 (10) -
$ 10 (10) -
$ 11 (10) -
$ 2 (10) -
$ 3 (10) -
$ 4 (10) -
$ 5 (10) -
$ 6 (10) -
$ 7 (10) -
$ 8 (10) -
$ 9 (10) -
$ : (10) -
$ ; (10) -
$ < (10) -
$ = (10) -
$ > (10) -
$ ? (10) -
$ @ (10) -
$ ARGV (10) -
$ CFLAGS (10) -
$ CHILD _ STATUS (10) -
$ DEBUG (10) -
$ DEFAULT _ INPUT (10) -
$ DEFAULT _ OUTPUT (10) -
$ ERROR _ INFO (10) -
$ ERROR _ POSITION (10) -
$ FIELD _ SEPARATOR (10) -
$ FILENAME (10) -
$ FS (10) -
$ IGNORECASE (10) -
$ INPUT _ LINE _ NUMBER (10) -
$ INPUT _ RECORD _ SEPARATOR (10) -
$ KCODE (10) -
$ LAST _ MATCH _ INFO (10) -
$ LAST _ PAREN _ MATCH (10) -
$ LAST _ READ _ LINE (10) -
$ LDFLAGS (10) -
$ LOADED _ FEATURES (10) -
$ LOAD _ PATH (10) -
$ MATCH (10) -
$ NR (10) -
$ OFS (10) -
$ ORS (10) -
$ OUTPUT _ FIELD _ SEPARATOR (10) -
$ OUTPUT _ RECORD _ SEPARATOR (10) -
$ PID (10) -
$ POSTMATCH (10) -
$ PREMATCH (10) -
$ PROCESS _ ID (10) -
$ PROGRAM _ NAME (10) -
$ RS (10) -
$ SAFE (10) -
$ VERBOSE (10) -
$ \ (10) -
$ _ (10) -
$ ` (10) -
$ archdir (10) -
$ defs (10) -
$ hdrdir (10) -
$ libdir (10) -
$ libs (10) -
$ sitearchdir (10) -
$ sitelibdir (10) -
$ srcdir (10) -
$ stderr (10) -
$ stdin (10) -
$ stdout (10) -
$ topdir (10) -
$ ~ (10) - Array (10)
- BigDecimal (20)
- CONFIG (10)
- Complex (20)
- DelegateClass (10)
- Digest (10)
- Float (10)
- Hash (10)
- Integer (10)
- JSON (10)
- Pathname (10)
- Rational (10)
- String (10)
- URI (10)
-
_ _ callee _ _ (10) -
_ _ dir _ _ (10) -
_ _ method _ _ (10) - ` (10)
- abort (20)
-
arg
_ config (10) -
at
_ exit (10) - autoload (10)
- autoload? (10)
- binding (10)
-
block
_ given? (10) - callcc (10)
- caller (30)
-
caller
_ locations (20) - catch (20)
-
cc
_ command (10) -
check
_ signedness (20) -
check
_ sizeof (20) - chmod (10)
- chomp (10)
- chop (10)
-
convertible
_ int (20) - cp (10)
-
cpp
_ command (10) -
create
_ header (10) -
create
_ makefile (10) -
create
_ tmpsrc (10) -
depend
_ rules (10) - desc (10)
- describe (1)
-
dir
_ config (10) - directory (10)
-
dummy
_ makefile (10) -
egrep
_ cpp (20) -
enable
_ config (20) - eval (20)
- exec (40)
- exit (10)
- exit! (10)
- fail (30)
- file (10)
-
file
_ create (10) -
find
_ executable (10) -
find
_ header (10) -
find
_ library (20) -
find
_ type (20) - fork (20)
- format (10)
- gem (10)
- gets (10)
-
global
_ variables (10) - gsub (30)
-
have
_ devel? (10) -
have
_ framework (20) -
have
_ func (20) -
have
_ header (20) -
have
_ library (20) -
have
_ macro (20) -
have
_ struct _ member (20) -
have
_ type (20) -
have
_ var (20) - help (10)
- httpd (10)
- import (10)
- install (10)
-
install
_ files (10) -
install
_ rb (10) - iterator? (10)
- j (10)
- jj (10)
- lambda (16)
- libpathflag (10)
-
link
_ command (10) - ln (10)
- load (10)
-
local
_ variables (10) -
log
_ src (10) - loop (20)
-
merge
_ libs (10) - mkdir (10)
- mkmf (10)
- modified? (10)
- multitask (10)
- mv (10)
- namespace (10)
- open (34)
- p (10)
- pp (10)
- print (10)
- printf (20)
- proc (17)
-
psych
_ y (10) - putc (10)
- puts (10)
- raise (30)
- rand (20)
- readline (10)
- readlines (10)
- require (20)
-
require
_ relative (10) - rm (10)
-
rm
_ f (10) -
rm
_ rf (10) - rmdir (10)
- rule (10)
- scanf (12)
- select (10)
-
set
_ trace _ func (10) - sleep (20)
- spawn (40)
- sprintf (10)
- srand (20)
- sub (20)
- syscall (10)
- system (40)
- task (10)
- test (20)
- throw (10)
- time (10)
- timeout (20)
- touch (10)
-
trace
_ var (30) - trap (20)
-
try
_ compile (20) -
try
_ constant (20) -
try
_ cpp (20) -
try
_ do (20) -
try
_ func (20) -
try
_ link (20) -
try
_ run (20) -
try
_ static _ assert (20) -
try
_ type (20) -
try
_ var (20) -
untrace
_ var (10) -
wait
_ writable (10) - warn (10)
-
with
_ config (20) -
with
_ werror (20) - xmp (10)
- xpopen (20)
- xsystem (10)
- y (10)
検索結果
先頭5件
-
Kernel
# DelegateClass(superclass) -> object (1.0) -
クラス superclass のインスタンスへメソッドを委譲するクラスを定義し、 そのクラスを返します。
クラス superclass のインスタンスへメソッドを委譲するクラスを定義し、
そのクラスを返します。
@param superclass 委譲先となるクラス
例:
//emlist{
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 (1.0) -
"MD5"や"SHA1"などのダイジェストを示す文字列 name を指定し、 対応するダイジェストのクラスを取得します。
"MD5"や"SHA1"などのダイジェストを示す文字列 name を指定し、
対応するダイジェストのクラスを取得します。
@param name "MD5"や"SHA1"などのダイジェストを示す文字列を指定します。
@return Digest::MD5やDigest::SHA1などの対応するダイジェストのクラスを返します。インスタンスではなく、クラスを返します。注意してください。
例: Digest::MD、Digest::SHA1、Digest::SHA512のクラス名を順番に出力する。
require 'digest'
for a in ["MD5", "SHA1", ......で
Digest::MD5などを直接呼び出すと問題があるときはこのメソッドを使
うか、起動時に使用するライブラリを Kernel.#require してください。
@param name "MD5"や"SHA1"などのダイジェストを示す文字列を指定します。
@return Digest::MD5や... -
Kernel
# JSON(object , options = {}) -> object (1.0) -
第一引数に与えられたオブジェクトの種類によって Ruby のオブジェクトか JSON 形式の文字列を返します。
第一引数に与えられたオブジェクトの種類によって Ruby のオブジェクトか JSON 形式の文字列を返します。
第一引数に文字列のようなオブジェクトを指定した場合は、それを JSON.#parse を用いてパースした結果を返します。
そうでないオブジェクトを指定した場合は、それを JSON.#generate を用いて変換した結果を返します。
@param object 任意のオブジェクトを指定します。
@param options JSON.#parse, JSON.#generate に渡すオプションを指定します。
//emlist[例][ruby]{
require "json... -
Kernel
# Pathname(path) -> Pathname (1.0) -
文字列 path を元に Pathname オブジェクトを生成します。
文字列 path を元に Pathname オブジェクトを生成します。
Pathname.new(path) と同じです。
@param path 文字列、または類似のオブジェクトを与えます。
実際には to_str に反応するオブジェクトなら何でも構いません。 -
Kernel
# arg _ config(config , default) { . . . } -> object | String | true | nil (1.0) -
configure オプション --config の値を返します。
configure オプション --config の値を返します。
@param config オプションを文字列で指定します。
@param default 引数 config で指定したオプションのデフォルト値を指定します。
@return オプションが指定されてた場合は true を、指定されなかった場合は
nil を返します。
引数 default、あるいはブロックを指定すると、オプションが指定さ
れていない場合に引数 default の値かブロックの評価結果を返します
(両方指定した場合はブロックが優先されます)... -
Kernel
# cc _ command(opt = "") -> String (1.0) -
実際にコンパイルする際に使用するコマンドを返します。
実際にコンパイルする際に使用するコマンドを返します。
@param opt コンパイラに与える追加のコマンドライン引数を指定します。
@see RbConfig.expand -
Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil (1.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.
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... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) { . . . } -> "signed" | "unsigned" | nil (1.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.
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... -
Kernel
# check _ sizeof(type , headers = nil) -> Integer | nil (1.0) -
与えられた型のサイズを返します。
与えられた型のサイズを返します。
型 type がシステムに存在する場合は、グローバル変数 $defs に
"-DSIZEOF_type=X" を追加し、型のサイズを返します。型 type がシステムに
存在しない場合は、nil を返します。
例えば、
require 'mkmf'
check_sizeof('mystruct') # => 12
である場合、SIZEOF_MYSTRUCT=12 というプリプロセッサマクロをコンパイラに渡します。
@param type 検査したい型を指定します。
@param headers 追加のヘッダファイルを指定します。 -
Kernel
# check _ sizeof(type , headers = nil) { . . . } -> Integer | nil (1.0) -
与えられた型のサイズを返します。
与えられた型のサイズを返します。
型 type がシステムに存在する場合は、グローバル変数 $defs に
"-DSIZEOF_type=X" を追加し、型のサイズを返します。型 type がシステムに
存在しない場合は、nil を返します。
例えば、
require 'mkmf'
check_sizeof('mystruct') # => 12
である場合、SIZEOF_MYSTRUCT=12 というプリプロセッサマクロをコンパイラに渡します。
@param type 検査したい型を指定します。
@param headers 追加のヘッダファイルを指定します。