別のキーワード
種類
ライブラリ
- ビルトイン (211)
- benchmark (10)
- bigdecimal (9)
-
cgi
/ core (3) -
cgi
/ html (5) - csv (6)
- date (1)
- dbm (1)
- debug (1)
- delegate (1)
- drb (3)
- erb (1)
- fiber (2)
- fiddle (2)
-
fiddle
/ import (2) -
fiddle
/ types (1) - forwardable (4)
- gdbm (1)
-
irb
/ cmd / chws (2) -
irb
/ cmd / help (1) -
irb
/ cmd / nop (2) -
irb
/ cmd / pushws (3) -
irb
/ cmd / subirb (3) -
irb
/ ext / use-loader (2) -
irb
/ extend-command (4) -
irb
/ inspector (1) -
irb
/ magic-file (1) -
irb
/ output-method (6) - json (2)
-
json
/ add / bigdecimal (1) -
json
/ add / exception (1) -
json
/ add / symbol (1) - matrix (5)
- mkmf (15)
-
net
/ ftp (1) -
net
/ imap (2) - nkf (1)
- objspace (1)
- observer (1)
- open-uri (2)
- openssl (32)
- optparse (22)
- pathname (5)
- prettyprint (2)
- psych (7)
- rake (3)
-
rdoc
/ code _ object (1) - resolv (5)
-
rexml
/ document (2) - rss (1)
- rubygems (1)
-
rubygems
/ platform (1) -
rubygems
/ specification (2) -
rubygems
/ user _ interaction (2) - sdbm (1)
- securerandom (1)
- set (2)
- shell (1)
-
shell
/ builtin-command (1) -
shell
/ command-processor (1) -
shell
/ filter (1) - socket (7)
- stringio (4)
- strscan (2)
- syslog (1)
- tempfile (5)
- tracer (2)
- uri (1)
-
webrick
/ accesslog (1) -
webrick
/ cgi (1) -
webrick
/ config (2) -
webrick
/ httpproxy (3) -
webrick
/ httpserver (1) -
webrick
/ httpservlet / abstract (2) -
webrick
/ httpservlet / prochandler (1) -
webrick
/ httpstatus (1) -
webrick
/ httputils (2) -
win32
/ registry (4) - win32ole (4)
-
yaml
/ dbm (2) - zlib (35)
クラス
-
ARGF
. class (1) - Array (17)
- BasicObject (6)
- BasicSocket (6)
-
Benchmark
:: Report (2) -
Benchmark
:: Tms (4) - BigDecimal (10)
- CSV (2)
-
CSV
:: Row (2) -
CSV
:: Table (1) - Class (1)
- DBM (1)
-
DRb
:: DRbServer (1) - Date (1)
- Delegator (1)
- Dir (3)
-
Encoding
:: Converter (4) - Enumerator (8)
-
Enumerator
:: Lazy (8) -
Enumerator
:: Yielder (1) - Exception (2)
- Fiber (4)
-
Fiddle
:: Closure :: BlockCaller (1) -
Fiddle
:: Function (1) - File (3)
- GDBM (1)
-
Gem
:: Platform (1) -
Gem
:: Specification (2) -
Gem
:: StreamUI (1) - Hash (7)
- IO (21)
-
IRB
:: ExtendCommand :: ChangeWorkspace (1) -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (1) -
IRB
:: ExtendCommand :: Foreground (1) -
IRB
:: ExtendCommand :: Help (1) -
IRB
:: ExtendCommand :: IrbCommand (1) -
IRB
:: ExtendCommand :: Kill (1) -
IRB
:: ExtendCommand :: Nop (2) -
IRB
:: ExtendCommand :: PopWorkspace (1) -
IRB
:: ExtendCommand :: PushWorkspace (1) -
IRB
:: ExtendCommand :: Workspaces (1) -
IRB
:: Inspector (1) -
IRB
:: OutputMethod (5) -
IRB
:: StdioOutputMethod (1) - Integer (3)
- LocalJumpError (1)
- MatchData (1)
- Matrix (3)
- Method (6)
- Module (8)
-
Net
:: FTP (1) -
Net
:: IMAP (1) -
Net
:: IMAP :: MailboxList (1) - Object (20)
-
OpenSSL
:: BN (4) -
OpenSSL
:: OCSP :: BasicResponse (3) -
OpenSSL
:: OCSP :: Request (2) -
OpenSSL
:: PKCS7 (2) -
OpenSSL
:: PKey :: DH (1) -
OpenSSL
:: PKey :: DSA (2) -
OpenSSL
:: PKey :: EC :: Group (3) -
OpenSSL
:: PKey :: RSA (4) -
OpenSSL
:: SSL :: SSLContext (2) -
OpenSSL
:: X509 :: Certificate (1) -
OpenSSL
:: X509 :: ExtensionFactory (1) -
OpenSSL
:: X509 :: StoreContext (1) - OptionParser (21)
- Pathname (5)
- PrettyPrint (2)
- Proc (3)
-
Psych
:: Handler (1) -
Psych
:: Nodes :: Mapping (1) -
Psych
:: Nodes :: Sequence (1) -
REXML
:: Element (2) -
Rake
:: FileList (2) - Range (2)
- Regexp (3)
-
Resolv
:: DNS (1) -
Resolv
:: IPv6 (4) -
RubyVM
:: InstructionSequence (1) - SDBM (1)
- Shell (1)
-
Shell
:: CommandProcessor (1) -
Shell
:: Concat (1) -
Shell
:: Filter (1) - Socket (1)
- String (7)
- StringIO (4)
- StringScanner (2)
- Struct (2)
- Symbol (5)
- Tempfile (5)
- Thread (1)
- Time (1)
- TracePoint (2)
- Tracer (3)
- UnboundMethod (1)
- Vector (2)
-
WEBrick
:: CGI (1) -
WEBrick
:: HTTPServer (1) -
WEBrick
:: HTTPServlet :: AbstractServlet (2) -
WEBrick
:: HTTPServlet :: ProcHandler (1) -
WEBrick
:: HTTPUtils :: FormData (1) - WIN32OLE (3)
-
WIN32OLE
_ EVENT (1) -
Win32
:: Registry (4) -
YAML
:: DBM (2) -
Zlib
:: Deflate (4) -
Zlib
:: GzipFile (3) -
Zlib
:: GzipReader (15) -
Zlib
:: GzipWriter (12)
モジュール
- Benchmark (4)
-
CGI
:: HtmlExtension (5) -
CGI
:: QueryExtension (3) - DRb (1)
- DublinCoreModel (1)
- Enumerable (29)
-
Fiddle
:: Importer (2) - FileUtils (1)
- Forwardable (2)
-
Gem
:: UserInteraction (1) -
IRB
:: ContextExtender (2) -
IRB
:: ExtendCommandBundle (4) - Kernel (40)
- Marshal (2)
- ObjectSpace (5)
- Observable (1)
-
OpenSSL
:: Buffering (3) -
OptionParser
:: Arguable (1) -
Process
:: GID (1) -
Process
:: UID (1) - Psych (2)
- SingleForwardable (2)
- Syslog (1)
- URI (2)
-
WEBrick
:: Config (2)
オブジェクト
-
IRB
:: MagicFile (1) -
WEBrick
:: NullReader (2) - main (1)
キーワード
- ! (1)
-
$ -d (1) -
$ DEBUG (1) - % (1)
- ** (3)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (1) - << (1)
- === (3)
- ARGV (1)
- ASN1 (1)
- AccessLog (1)
- BasicObject (1)
- BasicTypes (1)
- Buffering (1)
- CodeObject (1)
- Comparable (1)
- Complex (2)
- Cookie (1)
- DATA (1)
- DRbServer (1)
-
Data
_ Get _ Struct (1) -
Data
_ Make _ Struct (1) -
Data
_ Wrap _ Struct (1) - DigestAuth (1)
-
ENCODING
_ SPEC _ RE (1) - ERB (1)
-
EXCEPTION
_ ALL (1) - Error (1)
- FORMAT (2)
- Fiber (1)
- FileHandler (1)
- FormData (1)
- HTTPProxyServer (1)
- HTTPStatus (1)
- Hash (1)
- InstructionSequence (1)
- Location (1)
-
NEWS for Ruby 2
. 0 . 0 (1) -
NEWS for Ruby 2
. 1 . 0 (1) -
NEWS for Ruby 2
. 2 . 0 (1) -
NEWS for Ruby 2
. 3 . 0 (1) -
NEWS for Ruby 2
. 4 . 0 (1) -
NEWS for Ruby 2
. 5 . 0 (1) - NKF (1)
- ObjectId (1)
- RARRAY (1)
- RBASIC (1)
- RBIGNUM (1)
- RCLASS (1)
- RDATA (1)
- RFILE (1)
- RFLOAT (1)
- RHASH (1)
- RMODULE (1)
- ROBJECT (1)
- RREGEXP (1)
- RSTRING (1)
- RSTRUCT (1)
-
Regex
_ 6Hex4Dec (1) -
Regex
_ 8Hex (1) -
Regex
_ CompressedHex (1) -
Regex
_ CompressedHex4Dec (1) - Ruby が動作するプラットフォーム (1)
- Ruby プログラムの実行 (1)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (1)
- Rubyの起動 (1)
- Ruby変更履歴 (1)
- Ruby用語集 (1)
- SecureRandom (1)
- Symbol (1)
- Table (1)
- [] (3)
-
_ _ id _ _ (1) -
_ _ send _ _ (2) -
_ strptime (1) -
add
_ filter (1) - alive? (1)
- append (1)
-
arg
_ blk _ pass (1) -
arg
_ defined (1) - arity (2)
-
ask
_ yes _ no (1) - assignable (1)
- attr (1)
- attribute (1)
- attributes (1)
-
autoload
_ i (1) - backtrace (1)
- base64 (1)
- benchmark (1)
- bigdecimal (1)
-
bigdecimal
/ ludcmp (1) -
bigdecimal
/ math (1) -
bigdecimal
/ newton (1) -
bigdecimal
/ util (1) - bind (1)
- binmode (1)
- binread (1)
- binwrite (1)
-
blk
_ copy _ prev (1) -
blk
_ free (1) -
blk
_ mark (1) -
blk
_ orphan (1) -
block
_ append (1) -
block
_ pass (1) - bm (1)
-
bm
_ mark (1) -
boot
_ defclass (1) - bsearch (4)
- call (3)
- capitalize (1)
-
check
_ nonce (1) -
checkbox
_ group (2) - chunk (1)
-
class
_ exec (1) -
clone
_ method (1) - close (1)
- collect (3)
-
collect
_ concat (3) - combine (3)
-
compile
_ option= (1) - concat (4)
-
connect
_ address (1) -
convertible
_ int (2) - create (2)
- curry (2)
-
dc
_ types (1) - debug (1)
-
def
_ delegators (2) -
def
_ extend _ command (2) -
def
_ inspector (1) -
def
_ instance _ delegators (1) -
def
_ single _ delegators (1) - deflate (1)
- dlload (1)
- downcase (1)
- drb (1)
-
drb
/ gw (1) - dump (2)
-
dump
_ stream (1) - each (6)
-
each
_ byte (2) -
each
_ line (2) -
each
_ object (4) -
each
_ with _ index (2) -
each
_ with _ object (2) - encode (3)
-
end
_ with? (1) - entries (1)
-
enum
_ for (3) - exclude (1)
-
exec
_ under (1) - execute (11)
- extend (1)
-
fiddle
/ import (1) - fields (1)
-
find
_ bad _ fds (1) -
find
_ header (1) -
find
_ library (2) - finish (2)
-
flat
_ map (3) - flush (1)
- fnmatch (2)
- fnmatch? (2)
-
for
_ fd (1) - force (1)
- format (3)
- forwardable (1)
- gem (1)
-
generic
_ ivar _ remove (1) -
get
_ instance (2) - getc (1)
- gethostbyname (1)
- getopts (3)
- gets (2)
- gettable (1)
-
givar
_ i (1) - glob (2)
-
global
_ id (1) -
grep
_ v (2) - gsub (3)
-
gvar
_ i (1) - handler= (1)
-
has
_ key? (1) - include? (1)
- independent? (2)
- initialize (1)
-
ins
_ methods _ i (1) -
ins
_ methods _ priv _ i (1) -
ins
_ methods _ prot _ i (1) - insert (1)
-
install
_ extend _ commands (2) -
instance
_ exec (1) - invoke (1)
- irb (1)
-
irb
_ load (1) -
irb
_ require (1) -
is
_ defined (1) - item (1)
-
ivar
_ i (1) - j (1)
- jj (1)
- join (2)
- key? (1)
- lazy (1)
- lineno (1)
- lineno= (1)
-
local
_ tbl (1) - map (3)
-
mark
_ global _ entry (1) - match (2)
-
max
_ by (4) -
memsize
_ of (1) -
merge
_ libs (1) -
method
_ missing (3) -
mod
_ inverse (1) -
mod
_ mul (1) - mode (2)
-
module
_ exec (1) - mount (1)
- mult (1)
- new (32)
-
new
_ blktag (1) -
notify
_ observers (1) - on (12)
-
on
_ head (1) -
on
_ tail (1) - open (15)
- optparse (1)
- order (2)
-
os
_ each _ obj (1) - p (1)
- pack (2)
- pack テンプレート文字列 (1)
- parameters (2)
- permute (1)
- pipe (4)
-
point
_ conversion _ form (1) - popen (7)
- pow (2)
- power (2)
- pp (3)
- ppx (1)
- prepend (2)
- prettyprint (1)
-
primitive
_ convert (4) - print (5)
- printf (5)
- printn (1)
- private (1)
-
progress
_ reporter (1) -
psych
_ y (1) - public (2)
-
public
_ class _ method (1) -
public
_ constant (1) -
public
_ decrypt (1) -
public
_ encrypt (1) -
public
_ key (1) -
public
_ send (2) - push (2)
- puts (5)
-
radio
_ group (1) - raw (1)
-
rb
_ add _ method (1) -
rb
_ ary _ aref (1) -
rb
_ autoload (1) -
rb
_ autoload _ id (1) -
rb
_ backref _ error (1) -
rb
_ call (1) -
rb
_ call0 (1) -
rb
_ call _ super (1) -
rb
_ catch (1) -
rb
_ check _ convert _ type (1) -
rb
_ class2name (1) -
rb
_ class _ initialize (1) -
rb
_ class _ instance _ methods (1) -
rb
_ class _ new _ instance (1) -
rb
_ class _ private _ instance _ methods (1) -
rb
_ class _ protected _ instance _ methods (1) -
rb
_ class _ s _ new (1) -
rb
_ compile _ cstr (1) -
rb
_ compile _ error (1) -
rb
_ compile _ error _ with _ enc (1) -
rb
_ compile _ file (1) -
rb
_ compile _ string (1) -
rb
_ const _ list (1) -
rb
_ cont _ call (1) -
rb
_ convert _ type (1) -
rb
_ cstr _ to _ dbl (1) -
rb
_ cv _ get (1) -
rb
_ cv _ set (1) -
rb
_ data _ object _ alloc (1) -
rb
_ define _ alias (1) -
rb
_ define _ attr (1) -
rb
_ define _ class (1) -
rb
_ define _ class _ under (1) -
rb
_ define _ class _ variable (1) -
rb
_ define _ const (1) -
rb
_ define _ global _ const (1) -
rb
_ define _ global _ function (1) -
rb
_ define _ hooked _ variable (1) -
rb
_ define _ method (1) -
rb
_ define _ method _ id (1) -
rb
_ define _ module (1) -
rb
_ define _ module _ function (1) -
rb
_ define _ module _ under (1) -
rb
_ define _ private _ method (1) -
rb
_ define _ protected _ method (1) -
rb
_ define _ readonly _ variable (1) -
rb
_ define _ singleton _ method (1) -
rb
_ define _ variable (1) -
rb
_ define _ virtual _ variable (1) -
rb
_ disable _ super (1) -
rb
_ enable _ super (1) -
rb
_ ensure (1) -
rb
_ eval (1) -
rb
_ eval _ string (1) -
rb
_ eval _ string _ protect (1) -
rb
_ eval _ string _ wrap (1) -
rb
_ f _ abort (1) -
rb
_ f _ caller (1) -
rb
_ f _ eval (1) -
rb
_ f _ exit (1) -
rb
_ f _ load (1) -
rb
_ f _ missing (1) -
rb
_ f _ raise (1) -
rb
_ f _ send (1) -
rb
_ f _ throw (1) -
rb
_ f _ trace _ var (1) -
rb
_ f _ untrace _ var (1) -
rb
_ fatal (1) -
rb
_ feature _ p (1) -
rb
_ funcall2 (1) -
rb
_ funcall3 (1) -
rb
_ gc _ mark _ frame (1) -
rb
_ gc _ mark _ locations (1) -
rb
_ gc _ register _ address (1) -
rb
_ gc _ unregister _ address (1) -
rb
_ generic _ ivar _ table (1) -
rb
_ get _ method _ body (1) -
rb
_ global _ entry (1) -
rb
_ global _ variable (1) -
rb
_ gv _ get (1) -
rb
_ gv _ set (1) -
rb
_ gvar _ defined (1) -
rb
_ gvar _ get (1) -
rb
_ gvar _ set (1) -
rb
_ id2name (1) -
rb
_ intern (1) -
rb
_ io _ mode _ flags2 (1) -
rb
_ iterate (1) -
rb
_ iv _ get (1) -
rb
_ iv _ set (1) -
rb
_ load (1) -
rb
_ load _ protect (1) -
rb
_ mark _ hash (1) -
rb
_ mark _ tbl (1) -
rb
_ mod _ attr (1) -
rb
_ mod _ attr _ accessor (1) -
rb
_ mod _ attr _ reader (1) -
rb
_ mod _ attr _ writer (1) -
rb
_ mod _ const _ at (1) -
rb
_ mod _ const _ of (1) -
rb
_ mod _ define _ method (1) -
rb
_ mod _ include (1) -
rb
_ mod _ modfunc (1) -
rb
_ mod _ module _ eval (1) -
rb
_ mod _ private (1) -
rb
_ mod _ private _ method (1) -
rb
_ mod _ protected (1) -
rb
_ mod _ public (1) -
rb
_ mod _ public _ method (1) -
rb
_ node _ newnode (1) -
rb
_ obj _ call _ init (1) -
rb
_ obj _ extend (1) -
rb
_ obj _ instance _ eval (1) -
rb
_ obj _ respond _ to (1) -
rb
_ obj _ singleton _ methods (1) -
rb
_ path2class (1) -
rb
_ protect (1) -
rb
_ provide (1) -
rb
_ provided (1) -
rb
_ raise (1) -
rb
_ remove _ method (1) -
rb
_ require (1) -
rb
_ rescue (1) -
rb
_ rescue2 (1) -
rb
_ reserved _ word (1) -
rb
_ scan _ args (1) -
rb
_ set _ class _ path (1) -
rb
_ set _ end _ proc (1) -
rb
_ source _ filename (1) -
rb
_ str _ cat (1) -
rb
_ str _ cat2 (1) -
rb
_ str _ new (1) -
rb
_ str _ new2 (1) -
rb
_ svar (1) -
rb
_ thread _ create (1) -
rb
_ thread _ join _ m (1) -
rb
_ thread _ raise (1) -
rb
_ thread _ raise _ m (1) -
rb
_ thread _ s _ new (1) -
rb
_ thread _ signal _ raise (1) -
rb
_ thread _ start _ 0 (1) -
rb
_ throw (1) -
rb
_ time _ timespec _ new (1) -
rb
_ timespec _ now (1) -
rb
_ to _ integer (1) -
rb
_ undef _ method (1) -
rb
_ undefined (1) -
rb
_ with _ disable _ interrupt (1) - rdoc (1)
-
rdoc
/ markup / to _ bs (1) - read (3)
- readchar (1)
- readline (1)
- readlines (1)
- readpartial (1)
- realtime (1)
- reason (1)
- recvmsg (1)
-
recvmsg
_ nonblock (1) - rehash (1)
-
remove
_ trace (1) - report (1)
-
report
_ on _ exception (1) -
respond
_ to _ missing? (1) - resume (2)
-
rexml
/ parsers / sax2parser (1) -
rexml
/ parsers / ultralightparser (1) - ruby (1)
-
ruby 1
. 6 feature (1) -
ruby 1
. 8 . 2 feature (1) -
ruby 1
. 8 . 3 feature (1) -
ruby 1
. 8 . 4 feature (1) -
ruby 1
. 8 . 5 feature (1) -
ruby 1
. 9 feature (1) -
ruby
_ stack _ length (1) -
ruby
_ xcalloc (1) -
ruby
_ xfree (1) -
ruby
_ xmalloc (1) -
ruby
_ xrealloc (1) - rubygems (1)
-
rubygems
/ commands / lock _ command (1) -
rubygems
/ security (1) -
safe
_ load (1) -
scan
_ full (1) -
scrolling
_ list (1) -
search
_ full (1) - select (1)
- send (2)
- sendmsg (1)
-
sendmsg
_ nonblock (1) -
session
_ cache _ stats (1) -
set
_ encoding (2) -
set
_ method _ visibility (1) - shutdown (1)
-
sid
_ available? (2) - sign (1)
-
singleline
_ format (1) - slice (1)
- split (1)
- sprintf (1)
- sprintf フォーマット (1)
-
st
_ add _ direct (1) -
st
_ cleanup _ safe (1) -
st
_ copy (1) -
st
_ delete (1) -
st
_ delete _ safe (1) -
st
_ foreach (1) -
st
_ free _ table (1) -
st
_ init _ numtable (1) -
st
_ init _ numtable _ with _ size (1) -
st
_ init _ strtable (1) -
st
_ init _ strtable _ with _ size (1) -
st
_ init _ table (1) -
st
_ init _ table _ with _ size (1) -
st
_ insert (1) -
st
_ lookup (1) -
start
_ sequence (1) -
start
_ service (1) -
start
_ with? (1) - status (1)
- strftime (1)
- sub (2)
- sum (4)
-
sv
_ i (1) - swapcase (1)
-
symbols
_ i (1) - sysread (1)
- system (4)
- tap (1)
- thread (1)
-
tmp
_ dh _ callback= (1) -
to
_ a (2) -
to
_ ary (1) -
to
_ enum (3) -
to
_ h (1) -
to
_ hash (1) -
to
_ int (1) -
to
_ io (1) -
to
_ json (3) -
to
_ regexp (1) -
to
_ set (2) -
to
_ str (1) -
top
_ public (1) - trace (1)
-
trace
_ en (1) -
trace
_ func (2) - transfer (1)
-
transform
_ values (2) -
transform
_ values! (2) -
try
_ compile (2) -
try
_ cpp (2) -
try
_ link (2) -
try
_ run (2) - type (1)
-
undef
_ method (1) -
undef
_ setter (1) - ungetc (1)
- union (1)
- unpack (1)
- unshift (1)
- upcase (1)
-
val
_ setter (1) -
values
_ at (9) - verify (4)
-
webrick
/ cgi (1) -
webrick
/ httpauth / htgroup (1) - whitespace (1)
-
with
_ index (1) -
with
_ object (1) - wrap (3)
- write (2)
- xpopen (1)
- y (1)
- yaml (1)
- yield (2)
- zip (6)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (1)
- クラス/メソッドの定義 (1)
- メソッド呼び出し(super・ブロック付き・yield) (1)
- リテラル (1)
- 制御構造 (1)
- 変数と定数 (1)
- 多言語化 (1)
- 手続きオブジェクトの挙動の詳細 (1)
- 正規表現 (1)
- 演算子式 (1)
検索結果
先頭5件
-
static void blk
_ copy _ prev(struct BLOCK *block) (79201.0) -
-
static int blk
_ orphan(struct BLOCK *data) (78901.0) -
data が作成された SCOPE かまたはその子ではない SCOPE を評価しているとき真。
data が作成された SCOPE かまたはその子ではない
SCOPE を評価しているとき真。 -
static void blk
_ free(struct BLOCK *data) (78901.0) -
-
static void blk
_ mark(struct BLOCK *data) (78901.0) -
-
static NODE * block
_ append(NODE *head , NODE *tail) (78601.0) -
head と tail を NODE_BLOCK のリストとして連結し、 先頭ノードを返します。head または tail が NODE_BLOCK でない場合は NODE_BLOCK に入れたうえでそれを連結します。 head もしくは tail が NULL なら連結はせず、 NULL でないほうを返します。
head と tail を NODE_BLOCK のリストとして連結し、
先頭ノードを返します。head または tail が NODE_BLOCK
でない場合は NODE_BLOCK に入れたうえでそれを連結します。
head もしくは tail が NULL なら連結はせず、
NULL でないほうを返します。 -
static VALUE block
_ pass(VALUE self , NODE *node) (78601.0) -
node を評価して Proc オブジェクトを得、それを積みます。
node を評価して Proc オブジェクトを得、それを積みます。 -
static VALUE boot
_ defclass(char *name , VALUE super) (78601.0) -
(まだ) メタクラスを持たないクラスを作成します。 三つのメタオブジェクト Object, Module, Class を 作成するのに使います。
(まだ) メタクラスを持たないクラスを作成します。
三つのメタオブジェクト Object, Module, Class を
作成するのに使います。 -
static void bm
_ mark(struct METHOD *data) (78601.0) -
-
bigdecimal (78541.0)
-
bigdecimal は浮動小数点数演算ライブラリです。 任意の精度で 10 進表現された浮動小数点数を扱えます。
bigdecimal は浮動小数点数演算ライブラリです。
任意の精度で 10 進表現された浮動小数点数を扱えます。
//emlist[][ruby]{
require 'bigdecimal'
a = BigDecimal("0.123456789123456789")
b = BigDecimal("123456.78912345678", 40)
print a + b # => 0.123456912580245903456789e6
//}
一般的な 10 進数の計算でも有用です。2 進数の浮動小数点演算には微小な誤
差があるのに対し、BigDecimal では正確な値を得る事がで... -
bigdecimal
/ math (78109.0) -
BigDecimalを使った数学的な機能を提供します。
BigDecimalを使った数学的な機能を提供します。
以下の計算が行えます。
* sqrt(x, prec)
* sin (x, prec)
* cos (x, prec)
* atan(x, prec)
* PI (prec)
* E (prec)
引数:
: x
計算対象の BigDecimal オブジェクト。
: prec
計算結果の精度。
//emlist[例][ruby]{
require "bigdecimal"
require "bigdecimal/math"
include BigMath
a = BigDecimal((PI(... -
bigdecimal
/ util (78073.0) -
String、Integer、Float、Rational オブジェクトを BigDecimal オブジェクトに変換する機能を提供します。
String、Integer、Float、Rational オブジェクトを
BigDecimal オブジェクトに変換する機能を提供します。
* String#to_d
* Integer#to_d
* Float#to_d
* Rational#to_d
これらのメソッドを使うには 'bigdecimal/util' を require する必要があります。
なお、Ruby 2.6.0 以降では、'bigdecimal/util' を require すると、
'bigdecimal' 本体も require されます。 -
bigdecimal
/ ludcmp (78067.0) -
LU 分解を用いて、連立1次方程式 Ax = b の解 x を求める機能を提供します。
LU 分解を用いて、連立1次方程式 Ax = b の解 x を求める機能を提供します。
Ruby のソースコード中の以下のサンプルスクリプトも参考にしてください。
* https://github.com/ruby/ruby/blob/master/ext/bigdecimal/sample/linear.rb -
base64 (78037.0)
-
Base64 エンコード / デコードを行うメソッドを定義したモジュールを提供するライブラリです。
Base64 エンコード / デコードを行うメソッドを定義したモジュールを提供するライブラリです。
Base64 は、3 オクテット (8bits * 3 = 24bits) のバイナリコードを
ASCII 文字のうちの 65 文字 ([A-Za-z0-9+/] の 64 文字と '=')
だけを使用して 4 オクテット (6bits * 4 = 24bits)
の印字可能文字列に変換するエンコーディング法です。
2045, 4648 で定義されています。
このライブラリは 1.8 系統に添付されていた base64 ライブラリとは違います。
もはやサンプルスクリプトではありません。
=... -
bigdecimal
/ newton (78037.0) -
ニュートン法を用いて非線形方程式 f(x) = 0 の解 x を求める機能を提供しま す。
ニュートン法を用いて非線形方程式 f(x) = 0 の解 x を求める機能を提供しま
す。
本サブライブラリは BigDecimal に依存しません。
実行例:
require "bigdecimal"
require "bigdecimal/newton"
...
n = Newton.nlsolve(f, x)
引数 f には関数を表すオブジェクトを指定します。以下のメソッドに応答でき
る必要があります。
: f.values(x)
点 x における関数の値を数値の配列で返します。
: f.zero
0.0 を示す値を返します。
: f.one... -
Benchmark
:: Tms # *(x) -> Benchmark :: Tms (63601.0) -
self と x の乗算を計算します。
self と x の乗算を計算します。
@param x Benchmark::Tms のオブジェクトか Float に暗黙の変換ができるオブジェクトです。
@return 計算結果は新しい Benchmark::Tms オブジェクトです。
@see Benchmark::Tms#memberwise -
BigDecimal
# *(other) -> BigDecimal (63601.0) -
積を計算します。
積を計算します。
@param other self に掛ける数を指定します。
計算結果の精度についてはlib:bigdecimal#precisionを参照してください。 -
OpenSSL
:: BN # *(other) -> OpenSSL :: BN (63601.0) -
自身と other の積を返します。
自身と other の積を返します。
@param other かける数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#mod_mul -
Benchmark
. # benchmark(caption = "" , label _ width = nil , fmtstr = nil , *labels) {|rep| . . . } -> [Benchmark :: Tms] (28558.0) -
Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。
Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。
基本的には以下のように使います。
ブロックが Benchmark::Tms オブジェクトの配列を返した場合は、
それらの数値も追加の行に表示されます。
@param caption レポートの一行目に表示する文字列を指定します。
@param label_width ラベルの幅を指定します。
@param fmtstr フォーマット文字列を指定します。
この引数を省略すると Benchmark::FORMAT が使用されます。... -
ObjectSpace
. # each _ object {|object| . . . } -> Integer (27691.0) -
指定された klass と Object#kind_of? の関係にある全ての オブジェクトに対して繰り返します。引数が省略された時には全てのオブ ジェクトに対して繰り返します。 繰り返した数を返します。
指定された klass と Object#kind_of? の関係にある全ての
オブジェクトに対して繰り返します。引数が省略された時には全てのオブ
ジェクトに対して繰り返します。
繰り返した数を返します。
ブロックが与えられなかった場合は、
Enumerator オブジェクトを返します。
次のクラスのオブジェクトについては繰り返しません
* Fixnum
* Symbol
* TrueClass
* FalseClass
* NilClass
とくに、klass に Fixnum や Symbol などのクラスを指定した場合は、
何も繰り返さないことになります。
なお、Sy... -
ObjectSpace
. # each _ object(klass) {|object| . . . } -> Integer (27691.0) -
指定された klass と Object#kind_of? の関係にある全ての オブジェクトに対して繰り返します。引数が省略された時には全てのオブ ジェクトに対して繰り返します。 繰り返した数を返します。
指定された klass と Object#kind_of? の関係にある全ての
オブジェクトに対して繰り返します。引数が省略された時には全てのオブ
ジェクトに対して繰り返します。
繰り返した数を返します。
ブロックが与えられなかった場合は、
Enumerator オブジェクトを返します。
次のクラスのオブジェクトについては繰り返しません
* Fixnum
* Symbol
* TrueClass
* FalseClass
* NilClass
とくに、klass に Fixnum や Symbol などのクラスを指定した場合は、
何も繰り返さないことになります。
なお、Sy... -
BigDecimal
# **(n) -> BigDecimal (27601.0) -
self の n 乗を計算します。
self の n 乗を計算します。
戻り値の有効桁数は self の有効桁数の n 倍以上になります。
@param n selfを other 乗する数を指定します。
@param prec 有効桁数を整数で指定します。
@see Integer#pow -
Observable
# notify _ observers(*arg) -> nil (27601.0) -
オブザーバへ更新を通知します。
オブザーバへ更新を通知します。
更新フラグが立っていた場合は、
登録されているオブザーバの update メソッドを順次呼び出します。
与えられた引数はその update メソッドに渡されます。
与えられた引数の数と登録されているオブザーバのupdate メソッドの引数の数に違いがある場合は
例外ArgumentErrorを発生します。
全てのオブザーバの update メソッドを呼び出し後、更新フラグを初期化します。
@raise ArgumentError 与えられた引数の数と登録されているオブザーバのupdate メソッドの引数の数に違いがある場合に発生します。 -
OpenSSL
:: BN # **(other) -> OpenSSL :: BN (27601.0) -
自身の other 乗を返します。
自身の other 乗を返します。
@param other 指数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#mod_exp -
ObjectSpace
. # each _ object -> Enumerator (27391.0) -
指定された klass と Object#kind_of? の関係にある全ての オブジェクトに対して繰り返します。引数が省略された時には全てのオブ ジェクトに対して繰り返します。 繰り返した数を返します。
指定された klass と Object#kind_of? の関係にある全ての
オブジェクトに対して繰り返します。引数が省略された時には全てのオブ
ジェクトに対して繰り返します。
繰り返した数を返します。
ブロックが与えられなかった場合は、
Enumerator オブジェクトを返します。
次のクラスのオブジェクトについては繰り返しません
* Fixnum
* Symbol
* TrueClass
* FalseClass
* NilClass
とくに、klass に Fixnum や Symbol などのクラスを指定した場合は、
何も繰り返さないことになります。
なお、Sy... -
ObjectSpace
. # each _ object(klass) -> Enumerator (27391.0) -
指定された klass と Object#kind_of? の関係にある全ての オブジェクトに対して繰り返します。引数が省略された時には全てのオブ ジェクトに対して繰り返します。 繰り返した数を返します。
指定された klass と Object#kind_of? の関係にある全ての
オブジェクトに対して繰り返します。引数が省略された時には全てのオブ
ジェクトに対して繰り返します。
繰り返した数を返します。
ブロックが与えられなかった場合は、
Enumerator オブジェクトを返します。
次のクラスのオブジェクトについては繰り返しません
* Fixnum
* Symbol
* TrueClass
* FalseClass
* NilClass
とくに、klass に Fixnum や Symbol などのクラスを指定した場合は、
何も繰り返さないことになります。
なお、Sy... -
Enumerable
# each _ with _ object(obj) {|(*args) , memo _ obj| . . . } -> object (19519.0) -
与えられた任意のオブジェクトと要素をブロックに渡し繰り返し、最初に与えられたオブジェクトを返します。
与えられた任意のオブジェクトと要素をブロックに渡し繰り返し、最初に与えられたオブジェクトを返します。
ブロックを省略した場合は Enumerator を返します。
@param obj 任意のオブジェクトを指定します。
//emlist[例][ruby]{
evens = (1..10).each_with_object([]) {|i, a| a << i*2 }
# => [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
//}
@see Enumerator#with_object -
Enumerator
# with _ object(obj) {|(*args) , memo _ obj| . . . } -> object (19501.0) -
繰り返しの各要素に obj を添えてブロックを繰り返し、obj を返り値として返します。
繰り返しの各要素に obj を添えてブロックを繰り返し、obj を返り値として返します。
obj には任意のオブジェクトを渡すことができます。
ブロックが渡されなかった場合は、上で説明した繰り返しを実行し、
最後に obj を返す Enumerator を返します。
//emlist[例][ruby]{
# 0,1,2 と呼びだす enumeratorを作る
to_three = Enumerator.new do |y|
3.times do |x|
y << x
end
end
to_three_with_string = to_three.with_object... -
struct RObject * ROBJECT(VALUE obj) (19201.0)
-
-
void st
_ free _ table(st _ table *table) (19201.0) -
table を解放する。キー、値は解放されない。
table を解放する。キー、値は解放されない。 -
VALUE rb
_ rescue(VALUE (*b _ proc)() , VALUE data1 , VALUE (*r _ proc)() , VALUE data2) (18949.0) -
まず b_proc(data1) を実行し、その途中で例外が発生したら r_proc(data2) を実行します。 捕捉する例外は StandardError のサブクラスだけです。
まず b_proc(data1) を実行し、その途中で例外が発生したら r_proc(data2) を実行します。
捕捉する例外は StandardError のサブクラスだけです。 -
VALUE rb
_ rescue2(VALUE (*b _ proc)() , VALUE data1 , VALUE (*r _ proc)() , VALUE data2 , . . . ) (18949.0) -
まず b_proc(data1) を実行し、その途中で例外が発生したら r_proc(data2) を実行します。 第五引数以降の可変長引数に捕捉したい例外クラスのリストを指定します。 引数の最後は NULL で終らなければなりません。
まず b_proc(data1) を実行し、その途中で例外が発生したら r_proc(data2) を実行します。
第五引数以降の可変長引数に捕捉したい例外クラスのリストを指定します。
引数の最後は NULL で終らなければなりません。 -
st
_ table * st _ init _ strtable(void) (18949.0) -
キーが char* 型であるハッシュテーブルを作成する。
キーが char* 型であるハッシュテーブルを作成する。 -
st
_ table * st _ init _ strtable _ with _ size(int size) (18949.0) -
キーが char* 型であるハッシュテーブルを作成する。 st_init_table に文字列用の操作関数を渡しているだけ。
キーが char* 型であるハッシュテーブルを作成する。
st_init_table に文字列用の操作関数を渡しているだけ。 -
Kernel
# merge _ libs(*libs) -> [String] (18901.0) -
@todo 使われてない
@todo 使われてない
@param libs ??? -
VALUE rb
_ eval _ string _ protect(const char *str , int *state) (18901.0) -
str を Ruby プログラムとしてコンパイル・評価し、 その値を返します。
str を Ruby プログラムとしてコンパイル・評価し、
その値を返します。
コンパイル中または評価中に例外を含む大域脱出が発生した場合は、
state が NULL でなければそれに値が代入され Qnil を返します。 -
VALUE rb
_ eval _ string _ wrap(const char *str , int *state) (18901.0) -
rb_eval_string_protect と同じですが,スクリプトの評価を 無名のモジュールのもとで行います。
rb_eval_string_protect と同じですが,スクリプトの評価を
無名のモジュールのもとで行います。 -
double rb
_ cstr _ to _ dbl(const char *p , int badcheck) (18901.0) -
-
st
_ table * rb _ generic _ ivar _ table(VALUE obj) (18901.0) -
-
st
_ table * st _ init _ numtable(void) (18901.0) -
キーが int 型であるハッシュテーブルを作成する。
キーが int 型であるハッシュテーブルを作成する。 -
st
_ table * st _ init _ numtable _ with _ size(int size) (18901.0) -
キーが int 型であるハッシュテーブルを作成する。 st_init_table() に int 用の操作関数を渡しているだけ。
キーが int 型であるハッシュテーブルを作成する。
st_init_table() に int 用の操作関数を渡しているだけ。 -
st
_ table * st _ init _ table(struct st _ hash _ type *type) (18901.0) -
-
st
_ table * st _ init _ table _ with _ size(struct st _ hash _ type *type , int size) (18901.0) -
st_table を作成する。_with_size はサイズを指定して生成する。 struct st_hash_type はハッシュ値を得る関数と、同値判定を行う 関数を持つ。
st_table を作成する。_with_size はサイズを指定して生成する。
struct st_hash_type はハッシュ値を得る関数と、同値判定を行う
関数を持つ。 -
static VALUE rb
_ thread _ raise(int argc , VALUE *argv , rb _ thread _ t th) (18901.0) -
-
static VALUE rb
_ thread _ start _ 0(VALUE (*fn)() , void *arg , rb _ thread _ t th _ arg) (18901.0) -
-
static int mark
_ global _ entry(ID key , struct global _ entry *entry) (18901.0) -
-
static struct BLOCKTAG * new
_ blktag(void) (18901.0) -
-
struct RBasic * RBASIC(VALUE obj) (18901.0)
-
-
struct RBignum * RBIGNUM(VALUE obj) (18901.0)
-
-
struct global
_ entry * rb _ global _ entry(ID id) (18901.0) -
-
void rb
_ compile _ error(const char *file , int line , const char *fmt , . . . ) (18901.0) -
この関数は Ruby 2.3.0 から deprecated です。公開関数ですが内部利用のみを想 定しています。外部のライブラリで使用すべきではありません。
この関数は Ruby 2.3.0 から deprecated です。公開関数ですが内部利用のみを想
定しています。外部のライブラリで使用すべきではありません。 -
void rb
_ compile _ error _ with _ enc(const char *file , int line , void *enc , const char *fmt , . . . ) (18901.0) -
この関数は Ruby 2.3.0 から deprecated です。公開関数ですが内部利用のみを想 定しています。外部のライブラリで使用すべきではありません。
この関数は Ruby 2.3.0 から deprecated です。公開関数ですが内部利用のみを想
定しています。外部のライブラリで使用すべきではありません。 -
ERB (18883.0)
-
eRuby スクリプトを処理するクラス。
eRuby スクリプトを処理するクラス。
従来 ERbLight と呼ばれていたもので、
標準出力への印字が文字列の挿入とならない点が eruby と異なります。
* https://magazine.rubyist.net/articles/0017/0017-BundledLibraries.html
=== 使い方
ERB クラスを使うためには require 'erb' する必要があります。
例:
require 'erb'
ERB.new($<.read).run
=== trim_mode
trim_mode は整形の挙動を変更するオプションです。次の... -
int rb
_ scan _ args(int argc , const VALUE *argv , const char *fmt , . . . ) (18763.0) -
長さ argc の配列 argv を fmt に従って 解析し、第四引数以降で渡されたアドレスに書き込みます。
長さ argc の配列 argv を fmt に従って
解析し、第四引数以降で渡されたアドレスに書き込みます。
fmt のフォーマットは以下の通りです。
* 必須引数の数 (省略可能な引数があるなら省略不可)
* 省略可能な引数の数 (ゼロ個ならば省略可)
* 残りの引数を Ruby の配列として受け取ることを示す '*' (省略可)
* 最後の引数をオプションハッシュとして受け取る事を示す ':' (省略可)
* ブロックを Proc オブジェクト化して受け取ることを示す '&' (省略可)
これらの指定文字はそれぞれ省略可能ですが、
必ずこの順番で現れなければい... -
Zlib
:: GzipReader # each _ byte {|byte| . . . } -> nil (18709.0) -
IO クラスの同名メソッドIO#each_byteと同じです。
IO クラスの同名メソッドIO#each_byteと同じです。
但し、gzip ファイル中に
エラーがあった場合 Zlib::Error 例外や
Zlib::GzipFile::Error 例外が発生します。
gzip ファイルのフッターの処理に注意して下さい。
gzip ファイルのフッターには圧縮前データのチェックサムが
記録されています。GzipReader オブジェクトは、次の時に展開した
データとフッターの照合を行い、エラーがあった場合は
Zlib::GzipFile::NoFooter, Zlib::GzipFile::CRCError,
Zlib::GzipFile::Leng... -
ID rb
_ intern(const char *name) (18649.0) -
任意の char* と一対一に対応する整数 ID を返す。
任意の char* と一対一に対応する整数 ID を返す。 -
Pathname
# binread(*args) -> String | nil (18649.0) -
IO.binread(self.to_s, *args)と同じです。
IO.binread(self.to_s, *args)と同じです。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("testfile")
pathname.binread # => "This is line one\nThis is line two\nThis is line three\nAnd so on...\n"
pathname.binread(20) # => "This is line one\nThi"
pathname.binread(20, 10) # => ... -
Matrix
. combine(*matrices) -> Enumerator (18637.0) -
要素ごとにブロックを呼び出した結果を組み合わせた Matrix を返します。
要素ごとにブロックを呼び出した結果を組み合わせた Matrix を返します。
//emlist[例][ruby]{
require 'matrix'
x = Matrix[[6, 6], [4, 4]]
y = Matrix[[1, 2], [3, 4]]
Matrix.combine(x, y) {|a, b| a - b} # => Matrix[[5, 4], [1, 0]]
//}
@param matrices 並べる行列。すべての行列の行数と列数が一致していなければならない
@raise ExceptionForMatrix::ErrDimensionMismatch 行や列... -
Matrix
. combine(*matrices) {|*elements| . . . } -> Matrix (18637.0) -
要素ごとにブロックを呼び出した結果を組み合わせた Matrix を返します。
要素ごとにブロックを呼び出した結果を組み合わせた Matrix を返します。
//emlist[例][ruby]{
require 'matrix'
x = Matrix[[6, 6], [4, 4]]
y = Matrix[[1, 2], [3, 4]]
Matrix.combine(x, y) {|a, b| a - b} # => Matrix[[5, 4], [1, 0]]
//}
@param matrices 並べる行列。すべての行列の行数と列数が一致していなければならない
@raise ExceptionForMatrix::ErrDimensionMismatch 行や列... -
VALUE rb
_ catch(const char *tag , VALUE (*proc)() , VALUE data) (18637.0) -
catch と同等の動作を実行します。
catch と同等の動作を実行します。
まず proc に、yield された値と data を渡して実行します。
その途中で tag が throw されたら rb_catch 全体を終了します。
throw が発生した場合はその値を返します。
throw が発生しなかったときは proc の返り値を返します。
static VALUE
foo_yield(VALUE a, VALUE b)
{
return rb_yield(b);
}
static VALUE
foo_catch(VALUE obj)
{
return rb_... -
Enumerable
# each _ with _ object(obj) -> Enumerator (18619.0) -
与えられた任意のオブジェクトと要素をブロックに渡し繰り返し、最初に与えられたオブジェクトを返します。
与えられた任意のオブジェクトと要素をブロックに渡し繰り返し、最初に与えられたオブジェクトを返します。
ブロックを省略した場合は Enumerator を返します。
@param obj 任意のオブジェクトを指定します。
//emlist[例][ruby]{
evens = (1..10).each_with_object([]) {|i, a| a << i*2 }
# => [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
//}
@see Enumerator#with_object -
Matrix
# combine(*matrices) {|*elements| . . . } -> Matrix (18619.0) -
要素ごとにブロックを呼び出した結果を組み合わせた Matrix を返します。
要素ごとにブロックを呼び出した結果を組み合わせた Matrix を返します。
Matrix.combine(self, *matrices) { ... } と同じです。
@see Matrix.combine -
Module
# public(*name) -> self (18619.0) -
メソッドを public に設定します。
メソッドを public に設定します。
引数なしのときは今後このクラスまたはモジュール定義内で新規に定義さ
れるメソッドをどんな形式でも呼び出せるように(public)設定します。
引数が与えられた時には引数によって指定されたメソッドを public に設
定します。
可視性については d:spec/def#limit を参照して下さい。
@param name 0 個以上の String または Symbol を指定します。
@raise NameError 存在しないメソッド名を指定した場合に発生します。
//emlist[例][ruby]{
def foo() 1 en... -
static struct kwtable * rb
_ reserved _ word(const char *str , unsigned int len) (18619.0) -
長さ len の文字列 str が予約語であれば そのフラグテーブルを返します。str が予約語でなければ NULL を返します。
長さ len の文字列 str が予約語であれば
そのフラグテーブルを返します。str が予約語でなければ
NULL を返します。
struct kwtable {
char *name; /* 予約語の名前 */
int id[2]; /* 0: 非修飾型シンボル
1: 修飾型シンボル (kIF_MOD など) があれば
それを格納する。なければ id[0]... -
void rb
_ define _ method(VALUE klass , const char *name , VALUE(*func)() , int argc) (18619.0) -
クラスklassのインスタンスメソッドnameを定義します。
クラスklassのインスタンスメソッドnameを定義します。
argcはCの関数へ渡される引数の数(と形式)を決めます.
: argcが0以上の時
argcで指定した値がそのメソッドの引数の数になります。
16個以上の引数は使えません,
VALUE func(VALUE self, VALUE arg1, ... VALUE argN)
: argcが-1のとき
引数はCの配列として第二引数に入れて渡されます。
第一引数は配列の要素数です。
VALUE func(int argc, VALUE *argv, VALUE... -
Kernel
# find _ library(lib , func , *paths) -> bool (18607.0) -
関数 func が定義されたライブラリ lib を探します。
関数 func が定義されたライブラリ lib を探します。
最初はパスを指定せずに探し、
それに失敗したら paths[0] を指定して探し、
それにも失敗したら paths[1] を指定して探し……
というように、リンク可能なライブラリを探索します。
上記の探索でライブラリ lib を発見できた場合は lib を $libs に追加し、
見つかったパスを $LDFLAGS に追加して true を返します。
指定されたすべてのパスを検査してもライブラリ lib が見つからないときは、
変数を変更せず false を返します。
paths を指定しないときは Kernel#have_... -
Kernel
# find _ library(lib , func , *paths) { . . . } -> bool (18607.0) -
関数 func が定義されたライブラリ lib を探します。
関数 func が定義されたライブラリ lib を探します。
最初はパスを指定せずに探し、
それに失敗したら paths[0] を指定して探し、
それにも失敗したら paths[1] を指定して探し……
というように、リンク可能なライブラリを探索します。
上記の探索でライブラリ lib を発見できた場合は lib を $libs に追加し、
見つかったパスを $LDFLAGS に追加して true を返します。
指定されたすべてのパスを検査してもライブラリ lib が見つからないときは、
変数を変更せず false を返します。
paths を指定しないときは Kernel#have_... -
Object
# public _ send(name , *args) -> object (18607.0) -
オブジェクトの public メソッド name を args を引数にして呼び出し、メソッ ドの実行結果を返します。
オブジェクトの public メソッド name を args を引数にして呼び出し、メソッ
ドの実行結果を返します。
ブロック付きで呼ばれたときはブロックもそのまま引き渡します。
//emlist[][ruby]{
1.public_send(:+, 2) # => 3
//}
@param name 文字列かSymbol で指定するメソッド名です。
@param args 呼び出すメソッドに渡す引数です。
@raise ArgumentError name を指定しなかった場合に発生します。
@raise NoMethodError protected メソッドや priv... -
Object
# public _ send(name , *args) { . . . . } -> object (18607.0) -
オブジェクトの public メソッド name を args を引数にして呼び出し、メソッ ドの実行結果を返します。
オブジェクトの public メソッド name を args を引数にして呼び出し、メソッ
ドの実行結果を返します。
ブロック付きで呼ばれたときはブロックもそのまま引き渡します。
//emlist[][ruby]{
1.public_send(:+, 2) # => 3
//}
@param name 文字列かSymbol で指定するメソッド名です。
@param args 呼び出すメソッドに渡す引数です。
@raise ArgumentError name を指定しなかった場合に発生します。
@raise NoMethodError protected メソッドや priv... -
BasicSocket
# recvmsg _ nonblock(maxmesglen=nil , flags=0 , maxcontrollen=nil , opts={}) -> [String , Addrinfo , Integer , *Socket :: AncillaryData] (18604.0) -
recvmsg(2) を用いてノンブロッキング方式でメッセージを受け取ります。
recvmsg(2) を用いてノンブロッキング方式でメッセージを受け取ります。
ブロッキングの有無以外は BasicSocket#recvmsg と同じです。
詳しくはそちらを参照してください。
@param maxmesglen 受け取るメッセージの最大長
@param flags フラグ
@param maxcontrollen 受け取る補助データの最大長
@param opts ハッシュオプション -
BasicSocket
# sendmsg _ nonblock(mesg , flags=0 , dest _ sockaddr=nil , *controls) -> Integer (18604.0) -
sendmsg(2) を用いてノンブロッキング方式でメッセージを送ります。
sendmsg(2) を用いてノンブロッキング方式でメッセージを送ります。
詳しくは BasicSocket#sendmsg を見てください。
@return 送ったバイト数
@param mesg メッセージ文字列
@param flags フラグ(Socket::MSG_* という定数の bitwise OR を取ったもの)
@param dest_sockaddr 通信先のアドレス
@param controls 補助データの配列
@see BasicSocket#sendmsg -
Benchmark
. # bm(label _ width = 0 , *labels) {|rep| . . . } -> [Benchmark :: Tms] (18604.0) -
Benchmark.#benchmark メソッドの引数を簡略化したものです。
Benchmark.#benchmark メソッドの引数を簡略化したものです。
Benchmark.#benchmark メソッドと同様に働きます。
@param label_width ラベルの幅を指定します。
@param labels ブロックが Benchmark::Tms オブジェクトの配列を返す場合に指定します。
//emlist[][ruby]{
require 'benchmark'
n = 50000
Benchmark.bm do |x|
x.report { for i in 1..n; a = "1"; end }
x.report { n.t... -
CGI
:: HtmlExtension # checkbox _ group(name = "" , *values) -> String (18604.0) -
タイプが checkbox である input 要素のグループを生成します。
タイプが checkbox である input 要素のグループを生成します。
生成される input 要素の name 属性はすべて同じになり、
それぞれの input 要素の後ろにはラベルが続きます。
@param name name 属性の値を指定します。
@param values value 属性のリストを指定します。
それぞれの引数が、単純な文字列の場合、value 属性の値とラベルに同じものが使用されます。
それぞれの引数が、二要素または三要素の配列の場合、最終要素が true であれば、
... -
Fiddle
:: Importer # bind(signature , *opts) { . . . } -> Fiddle :: Function (18604.0) -
Ruby のブロックを C の関数で wrap し、その関数をモジュールに インポートします。
Ruby のブロックを C の関数で wrap し、その関数をモジュールに
インポートします。
これでインポートされた関数はモジュール関数として定義されます。
また、Fiddle::Importer#[] で Fiddle::Function オブジェクトとして
取り出すことができます。
signature で関数の名前とシネグチャを指定します。例えば
"int compare(void*, void*)" のように指定します。
opts には :stdcall もしくは :cdecl を渡すことができ、
呼出規約を明示することができます。
@return インポートした関数を表す ... -
IRB
:: ExtendCommandBundle # irb _ load(*opts , &b) -> nil (18604.0) -
現在の irb に関する IRB::Context に対して irb_load コマンドを実行 します。
現在の irb に関する IRB::Context に対して irb_load コマンドを実行
します。
@see IRB::ExtendCommand::Load#execute -
IRB
:: ExtendCommandBundle # irb _ require(*opts , &b) -> bool (18604.0) -
現在の irb に関する IRB::Context に対して irb_require コマンドを 実行します。
現在の irb に関する IRB::Context に対して irb_require コマンドを
実行します。
@see IRB::ExtendCommand::Require#execute -
FileUtils
# ruby(*args) {|result , status| . . . } (18601.0) -
与えられた引数で Ruby インタプリタを実行します。
与えられた引数で Ruby インタプリタを実行します。
@param args Ruby インタプリタに与える引数を指定します。
例:
ruby %{-pe '$_.upcase!' <README}
@see Kernel.#sh -
Gem
:: Specification . attributes(*args) -> () (18601.0) -
複数の属性を一度に作成するために使用します。
複数の属性を一度に作成するために使用します。
各属性のデフォルト値は nil になります。
@param args 属性名を一つ以上指定します。 -
Module
# public _ class _ method(*name) -> self (18601.0) -
name で指定したクラスメソッド (クラスの特異メソッド) の 可視性を public に変更します。
name で指定したクラスメソッド (クラスの特異メソッド) の
可視性を public に変更します。
@param name 0 個以上の String または Symbol を指定します。
//emlist[例][ruby]{
class Foo
def self.foo
"foo"
end
private_class_method :foo
end
Foo.foo # NoMethodError: private method `foo' called for Foo:Class
Foo.public_class_method(:foo) # => F... -
Module
# public _ constant(*name) -> self (18601.0) -
name で指定した定数の可視性を public に変更します。
name で指定した定数の可視性を public に変更します。
@param name 0 個以上の String か Symbol を指定します。
@raise NameError 存在しない定数を指定した場合に発生します。
@return self を返します。
//emlist[例][ruby]{
module SampleModule
class SampleInnerClass
end
# => 非公開クラスであることを明示するために private にする
private_constant :SampleInnerClass
end
begin
... -
NODE * rb
_ compile _ cstr(const char *f , const char *s , int len , int line) (18601.0) -
C の文字列 s を構文木にコンパイルし、ruby_eval_tree と ruby_eval_tree_begin に格納します。ruby_eval_tree を返します。 またコンパイルするときにファイル f の line 行目からをコンパイル していると仮定します。
C の文字列 s を構文木にコンパイルし、ruby_eval_tree と
ruby_eval_tree_begin に格納します。ruby_eval_tree を返します。
またコンパイルするときにファイル f の line 行目からをコンパイル
していると仮定します。 -
NODE * rb
_ compile _ file(const char *f , VALUE file , int start) (18601.0) -
Ruby の IO オブジェクト file から文字列を読み込み、 それを Ruby プログラムとして構文木にコンパイルします。 作成した構文木は ruby_eval_tree と ruby_eval_tree_begin に 格納し、同時に ruby_eval_tree を返します。 またコンパイルするときにファイル f の line 行目からをコンパイル していると仮定します。
Ruby の IO オブジェクト file から文字列を読み込み、
それを Ruby プログラムとして構文木にコンパイルします。
作成した構文木は ruby_eval_tree と ruby_eval_tree_begin に
格納し、同時に ruby_eval_tree を返します。
またコンパイルするときにファイル f の line 行目からをコンパイル
していると仮定します。 -
NODE * rb
_ compile _ string(const char *f , VALUE s , int line) (18601.0) -
Ruby の文字列 s を構文木にコンパイルし、ruby_eval_tree と ruby_eval_tree_begin に格納します。ruby_eval_tree を返します。 またコンパイルするときにファイル f の line 行目からをコンパイル していると仮定します。
Ruby の文字列 s を構文木にコンパイルし、ruby_eval_tree と
ruby_eval_tree_begin に格納します。ruby_eval_tree を返します。
またコンパイルするときにファイル f の line 行目からをコンパイル
していると仮定します。 -
NODE * rb
_ node _ newnode(enum node _ type type , NODE *a0 , NODE *a1 , NODE *a2) (18601.0) -
ノードタイプが type で a0 a1 a2 を 要素に持つノードを生成し、返します。
ノードタイプが type で a0 a1 a2 を
要素に持つノードを生成し、返します。 -
VALUE * rb
_ svar(int cnt) (18601.0) -
現在の SCOPE でローカル変数IDが cnt である変数の 領域へのポインタを返します。主に $_ (cnt=0) と $~ (cnt=1) に アクセスするために使われます。
現在の SCOPE でローカル変数IDが cnt である変数の
領域へのポインタを返します。主に $_ (cnt=0) と $~ (cnt=1) に
アクセスするために使われます。 -
VALUE rb
_ ary _ aref(int argc , VALUE *argv , VALUE ary) (18601.0) -
argc が 1 のときは ary[*argv]、 2 のときは ary[argv[0], argv[1]] を返します。
argc が 1 のときは ary[*argv]、
2 のときは ary[argv[0], argv[1]] を返します。 -
VALUE rb
_ call _ super(int argc , const VALUE *argv) (18601.0) -
Rubyレベルでの super です。 現在評価中のメソッドのスーパークラスのメソッドを呼び出します。
Rubyレベルでの super です。
現在評価中のメソッドのスーパークラスのメソッドを呼び出します。 -
VALUE rb
_ check _ convert _ type(VALUE val , int type , const char *tname , const char *method) (18601.0) -
val.method を実行してクラス tname のインスタンスを返します。 val がメソッド method を持たなければ nil を返します。
val.method を実行してクラス tname のインスタンスを返します。
val がメソッド method を持たなければ nil を返します。
type は、T_ARRAY, T_STRING などの構造体を表す ID です。
method の結果の型が type でなければ例外 TypeError が発生します。 -
VALUE rb
_ class _ instance _ methods(int argc , VALUE *argv , VALUE mod) (18601.0) -
Module#instance_methods の実体。 モジュール mod に定義されている public メソッド名の リストを文字列の配列で返します。
Module#instance_methods の実体。
モジュール mod に定義されている public メソッド名の
リストを文字列の配列で返します。 -
VALUE rb
_ class _ new _ instance(int argc , VALUE *argv , VALUE klass) (18601.0) -
Class#new の実体です。
Class#new の実体です。 -
VALUE rb
_ class _ private _ instance _ methods(int argc , VALUE *argv , VALUE mod) (18601.0) -
Module#private_instance_methods の実体。 モジュール mod に定義されている private メソッド名の リストを文字列の配列で返します。
Module#private_instance_methods の実体。
モジュール mod に定義されている private メソッド名の
リストを文字列の配列で返します。 -
VALUE rb
_ class _ protected _ instance _ methods(int argc , VALUE *argv , VALUE mod) (18601.0) -
Module#protected_instance_methods の実体。 モジュール mod に定義されている protected メソッド名の リストを文字列の配列で返します。
Module#protected_instance_methods の実体。
モジュール mod に定義されている protected メソッド名の
リストを文字列の配列で返します。 -
VALUE rb
_ const _ list(void *data) (18601.0) -
-
VALUE rb
_ convert _ type(VALUE val , int type , const char *tname , const char *method) (18601.0) -
オブジェクト val をクラス type のインスタンスに変換します。 変換には、val.method の戻り値が使われます。
オブジェクト val をクラス type のインスタンスに変換します。
変換には、val.method の戻り値が使われます。
val がもともと type クラスのインスタンスなら val を
そのまま返します。 -
VALUE rb
_ cv _ get(VALUE klass , char *name) (18601.0) -
klass のクラス変数 name の値を 取得します。
klass のクラス変数 name の値を
取得します。 -
VALUE rb
_ data _ object _ alloc(VALUE klass , void *datap , RUBY _ DATA _ FUNC dmark , RUBY _ DATA _ FUNC dfree) (18601.0) -
datap をラップするオブジェクトを生成し、返します。 そのクラスは klass となり、datap をマークするときは dmark、解放するときは dfree を使うようになります。
datap をラップするオブジェクトを生成し、返します。
そのクラスは klass となり、datap をマークするときは
dmark、解放するときは dfree を使うようになります。 -
VALUE rb
_ define _ class(const char *name , VALUE super) (18601.0) -
クラス super の下位クラス name を作成し返します。
クラス super の下位クラス name を作成し返します。 -
VALUE rb
_ define _ class _ under(VALUE outer , const char *name , VALUE super) (18601.0) -
super のサブクラスとして新しい Ruby クラスを、outer の定数として定義し て返します。
super のサブクラスとして新しい Ruby クラスを、outer の定数として定義し
て返します。
@param outer 定義するクラスが定数として所属するクラス
@param name クラス名
@param super 継承元のクラス。NULL を指定した場合は Object クラス
@raise TypeError 引数 name と同じ名前の定数が既に存在し、それが
Class オブジェクトではない場合に発生します。
@raise TypeError 定義済みのクラスと継承元のクラスが一致しない場合に発生
... -
VALUE rb
_ define _ module(const char *name) (18601.0) -
モジュール name を作成し返します。
モジュール name を作成し返します。
例:
VALUE rb_mHoge = rb_define_module("Hoge"); // モジュールHogeを作成 -
VALUE rb
_ define _ module _ under(VALUE outer , const char *name) (18601.0) -
モジュール outer::name を作成し返します。
モジュール outer::name を作成し返します。 -
VALUE rb
_ ensure(VALUE (*body)() , VALUE data1 , VALUE (*ensure)() , VALUE data2) (18601.0) -
ensure の C 版です。まず body(data1) を実行し、その途中で 例外や exit が起きたとしても ensure(data2) が確実に 実行されます ( body() が正常終了しても実行されます)。
ensure の C 版です。まず body(data1) を実行し、その途中で
例外や exit が起きたとしても ensure(data2) が確実に
実行されます ( body() が正常終了しても実行されます)。