種類
ライブラリ
- English (24)
- ビルトイン (2915)
-
bigdecimal
/ util (7) - csv (84)
- digest (12)
- e2mmap (54)
- erb (24)
- etc (12)
- fiddle (12)
-
fiddle
/ import (24) - forwardable (48)
- getoptlong (24)
-
irb
/ extend-command (12) - json (156)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) - logger (1)
-
minitest
/ unit (1) - monitor (12)
-
mutex
_ m (24) -
net
/ http (12) -
net
/ imap (12) -
net
/ pop (12) - objspace (48)
- openssl (960)
- optparse (192)
- pp (24)
- psych (31)
- rake (48)
- rdoc (12)
-
rdoc
/ context (84) -
rdoc
/ generator / json _ index (12) -
rdoc
/ known _ classes (12) -
rdoc
/ markup (12) -
rdoc
/ parser (12) -
rdoc
/ single _ class (12) -
rdoc
/ stats (12) -
rdoc
/ top _ level (48) - resolv (12)
-
rexml
/ document (24) -
rexml
/ streamlistener (12) -
ripper
/ filter (12) -
rubygems
/ digest / digest _ adapter (12) -
rubygems
/ ext / builder (12) -
rubygems
/ gem _ openssl (12) -
rubygems
/ remote _ fetcher (12) -
rubygems
/ version (12) - set (9)
-
shell
/ command-processor (6) - singleton (12)
- socket (72)
- thread (2)
- timeout (49)
- tracer (60)
- tsort (47)
- uri (24)
-
webrick
/ httpauth / authenticator (24) -
webrick
/ httpauth / userdb (12) -
webrick
/ httpresponse (12) -
webrick
/ httpservlet / abstract (72) -
webrick
/ httpservlet / filehandler (12) -
webrick
/ httpstatus (12) -
webrick
/ httputils (96) -
win32
/ registry (228) - win32ole (96)
クラス
-
ARGF
. class (764) - Array (12)
- BasicObject (144)
- BigDecimal (12)
- CSV (84)
- Class (24)
- Complex (12)
- Data (6)
- Date (12)
- DateTime (12)
- Dir (72)
- ERB (12)
-
Enumerator
:: Lazy (12) -
Etc
:: Passwd (12) - Exception (24)
- FalseClass (24)
- File (60)
-
Gem
:: DigestAdapter (12) -
Gem
:: Ext :: Builder (12) -
Gem
:: RemoteFetcher (12) -
Gem
:: Version (12) - GetoptLong (24)
- IO (60)
- Integer (12)
-
JSON
:: Parser (12) -
JSON
:: State (24) - Method (95)
-
MiniTest
:: Unit :: TestCase (1) - Module (532)
- NameError (10)
-
Net
:: HTTPResponse (12) -
Net
:: IMAP (12) -
Net
:: POP3 (12) - NilClass (170)
- Object (332)
-
OpenSSL
:: ASN1 :: BMPString (24) -
OpenSSL
:: ASN1 :: BitString (24) -
OpenSSL
:: ASN1 :: Boolean (12) -
OpenSSL
:: ASN1 :: Enumerated (12) -
OpenSSL
:: ASN1 :: GeneralString (24) -
OpenSSL
:: ASN1 :: GeneralizedTime (24) -
OpenSSL
:: ASN1 :: GraphicString (24) -
OpenSSL
:: ASN1 :: IA5String (24) -
OpenSSL
:: ASN1 :: ISO64String (24) -
OpenSSL
:: ASN1 :: Integer (24) -
OpenSSL
:: ASN1 :: Null (12) -
OpenSSL
:: ASN1 :: NumericString (24) -
OpenSSL
:: ASN1 :: ObjectId (24) -
OpenSSL
:: ASN1 :: OctetString (24) -
OpenSSL
:: ASN1 :: PrintableString (24) -
OpenSSL
:: ASN1 :: Sequence (12) -
OpenSSL
:: ASN1 :: Set (12) -
OpenSSL
:: ASN1 :: T61String (24) -
OpenSSL
:: ASN1 :: UTCTime (24) -
OpenSSL
:: ASN1 :: UTF8String (24) -
OpenSSL
:: ASN1 :: UniversalString (24) -
OpenSSL
:: ASN1 :: VideotexString (24) - OptionParser (192)
-
RDoc
:: Context (84) -
RDoc
:: Generator :: JsonIndex (12) -
RDoc
:: Markup (12) -
RDoc
:: Parser (12) -
RDoc
:: Stats (12) -
RDoc
:: TopLevel (48) -
REXML
:: CData (24) - Range (24)
- Rational (12)
- Regexp (24)
-
RubyVM
:: InstructionSequence (12) - Set (12)
-
Shell
:: CommandProcessor (6) - Socket (36)
- String (12)
- Struct (28)
- Thread (24)
-
Thread
:: Backtrace :: Location (48) - Time (12)
- TracePoint (48)
- Tracer (60)
- TrueClass (24)
-
URI
:: Generic (24) - UnboundMethod (36)
-
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (72) -
WEBrick
:: HTTPServlet :: FileHandler (12) -
WEBrick
:: HTTPUtils :: FormData (96) -
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (48) -
WIN32OLE
_ TYPELIB (36) -
Win32
:: Registry (108) -
Win32
:: Registry :: PredefinedKey (12)
モジュール
-
ERB
:: DefMethod (12) - Enumerable (96)
- Exception2MessageMapper (54)
-
Fiddle
:: Importer (24) - Forwardable (36)
-
Gem
:: SSL (12) -
IRB
:: ExtendCommandBundle (12) - JSON (36)
-
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (184)
- Marshal (24)
-
Mutex
_ m (24) - ObjectSpace (108)
-
OpenSSL
:: ASN1 (480) - Psych (19)
- RDoc (24)
-
REXML
:: StreamListener (12) -
Rake
:: TaskManager (24) -
Socket
:: Constants (36) - TSort (47)
- Timeout (21)
-
WEBrick
:: HTTPAuth :: Authenticator (12) -
WEBrick
:: HTTPAuth :: ProxyAuthenticator (12) -
WEBrick
:: HTTPAuth :: UserDB (12) -
WEBrick
:: HTTPStatus (12) -
Win32
:: Registry :: Constants (108)
キーワード
- ! (12)
- != (12)
-
$ ERROR _ INFO (12) -
$ ERROR _ POSITION (12) -
$ FILENAME (12) - & (12)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - < (12)
- <=> (12)
- == (24)
- === (12)
- =~ (7)
- APOP (12)
- ARGF (12)
- Application (1)
- AuthException (24)
- BMPString (24)
- BasicObject (12)
- BitString (24)
- Boolean (12)
-
CLASS
_ MODIFIERS (12) - Class (12)
- Closure (12)
- ConditionVariable (12)
-
DIGEST
_ SHA1 (12) - Enumerated (12)
- Error (12)
- Fail (12)
- Filter (12)
- GeneralString (24)
- GeneralizedTime (24)
- GraphicString (24)
-
HKEY
_ CLASSES _ ROOT (24) -
HKEY
_ CURRENT _ CONFIG (24) -
HKEY
_ CURRENT _ USER (24) -
HKEY
_ DYN _ DATA (24) -
HKEY
_ LOCAL _ MACHINE (24) -
HKEY
_ PERFORMANCE _ DATA (24) -
HKEY
_ PERFORMANCE _ NLSTEXT (24) -
HKEY
_ PERFORMANCE _ TEXT (24) -
HKEY
_ USERS (24) - IA5String (24)
- IN (12)
-
IPPROTO
_ TP (24) -
IPV6
_ RECVTCLASS (24) -
IPV6
_ TCLASS (24) - ISO64String (24)
- Integer (24)
-
KNOWN
_ CLASSES (12) - Location (12)
- Marshal フォーマット (12)
- MonitorMixin (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) - NIL (8)
- NilClass (36)
- Null (12)
- Numeric (12)
- NumericString (24)
- ObjectId (24)
- OctetString (24)
- Options (12)
-
PASSTHROUGH
_ EXCEPTIONS (1) - PrintableString (24)
- Raise (12)
- ReFe (12)
- Requirement (12)
- Ruby用語集 (12)
- Sequence (12)
- Set (12)
- SingleClass (12)
- SingleForwardable (12)
- Singleton (12)
- String (12)
- T61String (24)
- TYPES (12)
- UTCTime (24)
- UTF8String (24)
- UniversalString (24)
- VideotexString (24)
- Visitors (12)
- [] (48)
- ^ (12)
-
_ _ send _ _ (24) -
_ dump (12) -
absolute
_ path (12) - accept (24)
-
add
_ authenticator (12) -
add
_ class (12) -
add
_ class _ or _ module (24) -
add
_ filter (24) -
add
_ module (12) -
add
_ special (12) -
all
_ classes _ and _ modules (12) -
append
_ features (12) - arity (24)
-
attr
_ writer (4) -
auth
_ type (12) - autoload (24)
- autoload? (12)
- backtrace (12)
-
base
_ label (12) - bind (12)
- binmode (12)
- binmode? (12)
-
boot
_ defclass (12) -
callee
_ id (12) - cgi (12)
-
cgi
/ session (12) -
class
_ eval (12) -
class
_ name (12) -
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) -
class
_ variables (12) - classes (12)
- classify (12)
- classname (12)
- codepoints (14)
- component (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ missing (12) -
const
_ source _ location (12) - constants (12)
-
count
_ objects _ size (12) -
count
_ tdata _ objects (12) -
create
_ id (12) -
create
_ id= (12) - debug (12)
-
def
_ builtin _ commands (6) -
def
_ delegator (12) -
def
_ erb _ method (12) -
def
_ exception (12) -
def
_ extend _ command (12) -
def
_ instance _ delegator (12) -
default
_ event _ sources (12) -
default
_ port (12) - define (6)
-
define
_ aliases (12) -
define
_ finalizer (24) -
define
_ method (24) -
define
_ singleton _ method (24) -
define
_ task (12) -
defined
_ class (12) - display (12)
-
do
_ DELETE (12) -
do
_ GET (12) -
do
_ HEAD (12) -
do
_ OPTIONS (12) -
do
_ POST (12) -
do
_ PUT (12) - dump (24)
- each (36)
-
each
_ char (24) -
each
_ classmodule (12) -
each
_ codepoint (24) -
each
_ data (12) -
each
_ line (48) -
each
_ object (24) -
each
_ strongly _ connected _ component (12) -
each
_ strongly _ connected _ component _ from (23) - entitydecl (12)
- error (12)
- error? (12)
-
external
_ encoding (12) - fail (42)
- file (12)
- filename (24)
- filename= (12)
- fileno (12)
-
find
_ class _ named (12) -
find
_ class _ path (12) -
find
_ local _ symbol (12) -
fixed
_ encoding? (12) -
for
_ fd (12) -
from
_ state (12) - getbyte (12)
- getc (12)
- gets (36)
-
global
_ variables (12) - handler= (12)
-
http
_ version (12) - include (12)
- include? (12)
-
include
_ class _ new (12) - included (12)
- inherited (12)
- initialize (12)
-
initialize
_ classes _ and _ modules (12) -
initialize
_ copy (12) -
inplace
_ mode (12) -
inplace
_ mode= (12) -
ins
_ methods _ i (12) -
ins
_ methods _ priv _ i (12) -
ins
_ methods _ prot _ i (12) - inspect (84)
-
instance
_ delegate (12) -
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) -
instance
_ methods (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instance
_ variables (12) - intern (12)
-
internal
_ encoding (12) - irb (12)
-
irb
/ completion (12) -
is
_ a? (12) -
kind
_ of? (12) - lineno (12)
- lineno= (12)
- lines (42)
- list (12)
-
local
_ variables (12) - max (24)
-
method
_ defined? (12) -
method
_ id (12) -
method
_ missing (12) -
method
_ undefined (12) - methods (12)
- min (48)
-
minitest
/ unit (1) -
module
_ eval (12) - name (24)
- name= (12)
- nesting (12)
- new (664)
- nil? (12)
-
num
_ classes (12) -
ole
_ classes (24) -
ole
_ type (12) -
ole
_ types (12) - on (156)
- open (144)
-
original
_ name (24) -
parse
_ files _ matching (12) - path (24)
- pathmap (12)
- pos (12)
-
pretty
_ print (12) -
pretty
_ print _ cycle (12) - print (12)
- printf (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
public
_ class _ method (24) -
public
_ constant (12) -
public
_ method (12) -
public
_ method _ defined? (12) - puts (12)
- raise (36)
-
rake
/ classic _ namespace (12) -
rake
_ extension (12) - rationalize (24)
-
rb
_ class _ allocate _ instance (12) -
rb
_ class _ inherited (12) -
rb
_ class _ initialize (12) -
rb
_ class _ instance _ methods (12) -
rb
_ class _ new _ instance (12) -
rb
_ class _ private _ instance _ methods (12) -
rb
_ class _ protected _ instance _ methods (12) -
rb
_ class _ s _ new (12) -
rb
_ class _ superclass (12) -
rb
_ clear _ cache _ by _ class (12) -
rb
_ define _ class (12) -
rb
_ define _ class _ id (12) -
rb
_ define _ class _ under (12) -
rb
_ define _ class _ variable (12) -
rb
_ frozen _ class _ p (12) -
rb
_ is _ class _ id (12) -
rb
_ mod _ class _ variables (12) -
rb
_ name _ class (12) -
rb
_ set _ class _ path (12) -
rb
_ singleton _ class (12) -
rb
_ singleton _ class _ attached (12) -
rb
_ singleton _ class _ clone (12) -
rb
_ singleton _ class _ new (12) - rdoc (12)
-
rdoc
/ generator / json _ index (12) -
rdoc
/ single _ class (12) -
reachable
_ objects _ from (12) - read (24)
-
read
_ nonblock (12) - readbyte (24)
- readchar (12)
- readline (36)
- readlines (48)
- readpartial (12)
- receiver (22)
- refine (12)
- reject (24)
-
remove
_ class _ variable (12) -
remove
_ handler (12) -
remove
_ instance _ variable (12) - request (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (12) - rewind (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
safe
_ load (19) - seek (12)
-
set
_ encoding (36) -
set
_ get _ line _ procs (24) -
set
_ trace _ func (12) -
singleton
_ class (12) -
singleton
_ class? (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) - skip (12)
-
sort
_ by (24) -
source
_ location (12) - stat (12)
- struct (12)
-
super
_ method (11) - superclass (24)
- tell (12)
-
test
/ unit (1) - timeout (37)
-
to
_ a (60) -
to
_ ary (12) -
to
_ bn (12) -
to
_ c (12) -
to
_ d (7) -
to
_ f (12) -
to
_ h (12) -
to
_ i (24) -
to
_ int (12) -
to
_ io (12) -
to
_ json (168) -
to
_ json _ raw _ object (12) -
to
_ r (12) -
to
_ s (108) -
to
_ str (12) -
to
_ write _ io (12) -
trace
_ object _ allocations (12) - tracer (12)
- traverse (12)
- tsort (12)
-
tsort
_ each (12) - uclass (12)
- unbind (12)
-
undefine
_ finalizer (12) - union (12)
- value (24)
-
webrick
/ cgi (12) - write (12)
- | (12)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (12)
- パターンマッチ (12)
- メソッド呼び出し(super・ブロック付き・yield) (12)
- リテラル (12)
- 制御構造 (12)
- 変数と定数 (12)
- 字句構造 (12)
- 正規表現 (12)
- 演算子式 (12)
検索結果
先頭5件
-
static VALUE include
_ class _ new(VALUE module , VALUE super) (32200.0) -
super をスーパークラスとして モジュールの「化身」クラスを作成し返します。
super をスーパークラスとして
モジュールの「化身」クラスを作成し返します。 -
static int ins
_ methods _ i(ID key , NODE *body , VALUE ary) (26116.0) -
rb_class_instance_methods() のイテレータブロック (通常版)。
...rb_class_instance_methods() のイテレータブロック (通常版)。... -
static int ins
_ methods _ priv _ i(ID key , NODE *body , VALUE ary) (26116.0) -
rb_class_instance_methods() のイテレータブロック (private メソッド版)。
...rb_class_instance_methods() のイテレータブロック
(private メソッド版)。... -
static int ins
_ methods _ prot _ i(ID key , NODE *body , VALUE ary) (26116.0) -
rb_class_instance_methods() のイテレータブロック (protected メソッド版)。
...rb_class_instance_methods() のイテレータブロック
(protected メソッド版)。... -
irb (26096.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
=== irb の使い方
Ruby さえ知っていれば irb を使うのは簡単です。
irb コマンドを実行すると、以下のようなプロン......。
$ irb
irb(main):001:0>
あとは Ruby の式を入力するだけで、その式が実行され、結果が表示されます。
irb(main):001:0> 1+2
3
irb(main):002:0> class Foo
irb(main):003:1> def foo
irb(main):004:2> print 1
irb(main):005:2> end
irb(main):006:1>......end
:foo
irb(main):007:0>
また irb コマンドは readline ライブラリにも対応しています。
readline ライブラリがインストールされている時には
自動的にコマンドライン編集や履歴の機能が使えるようになります。
=== irb のコマン... -
irb
/ completion (26006.0) -
irb の completion 機能を提供するライブラリです。
...irb の completion 機能を提供するライブラリです。
=== 使い方
$ irb -r irb/completion
とするか, ~/.irbrc 中に
require "irb/completion"
を入れてください.
irb実行中に require "irb/completion" してもよいです.
irb 実行中に [Tab] を押すとコ......全に補完します.
irb(main):001:0> in
in inspect instance_eval
include install_alias_method instance_of?
initialize install_aliases instance_variables
irb(main):001:0> inspect
"main"
irb(main):002:0> foo = Objec......lic_methods
foo.=~ foo.id foo.respond_to?
foo.__id__ foo.inspect foo.send
foo.__send__ foo.instance_eval foo.singleton_methods
foo.class foo.instance_of? foo.taint
foo.clone foo.i... -
Win32
:: Registry :: PredefinedKey # class (24101.0) -
@todo
@todo -
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (23006.0)
-
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル * Ruby オフィシャルサイト https://www.ruby-lang.org/ja/ * 原著:まつもとゆきひろ * 最新版URL: https://www.ruby-lang.org/ja/documentation/
...ntation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃っています。
標準添付ライブラリのリファレンスは一部未完成です。
それ以外のドキュメントについては、まだまだ書き直しが必要です。
=== 目次
* spec/intro......bject
* spec/class
プロセスの実行:
* spec/eval
* spec/terminate
* spec/thread
* spec/safelevel
Ruby の文法:
* spec/lexical
* spec/program
* spec/variables
* spec/literal
* spec/operator
* spec/control
* spec/call
* spec/def
* spec/pattern_matching
その他:......* spec/m17n
* spec/regexp
* spec/lambda_proc
==== 組み込みライブラリ
* _builtin
==== 標準添付ライブラリ
* /
==== C API
* /
==== その他
* news/index
* pack_template
* print_format
* glossary
* symref
* marshal_format
* license
* help......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.3 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って....../intro
* spec/commands
* spec/rubycmd
* spec/envvars
==== Ruby 言語仕様
Ruby でのオブジェクト:
* spec/object
* spec/class
プロセスの実行:
* spec/eval
* spec/terminate
* spec/thread
* spec/safelevel
Ruby の文法:
* spec/lexical
* spec/program
* spec/varia......spec/literal
* spec/operator
* spec/control
* spec/call
* spec/def
* spec/pattern_matching
その他:
* spec/m17n
* spec/regexp
* spec/lambda_proc
==== 組み込みライブラリ
* _builtin
==== 標準添付ライブラリ
* /
==== C API
* /
==== その他
* news/index......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.4 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.5 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.6 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.7 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.0 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.1 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.2 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......c/intro
* spec/commands
* spec/rubycmd
* spec/envvars
==== Ruby 言語仕様
Ruby でのオブジェクト:
* spec/object
* spec/class
プロセスの実行:
* spec/eval
* spec/terminate
* spec/thread
Ruby の文法:
* spec/lexical
* spec/program
* spec/variables
* spec/lite......n_matching
その他:
* spec/m17n
* spec/regexp
* spec/lambda_proc
==== 組み込みライブラリ
* _builtin
==== 標準添付ライブラリ
* /
==== C API
* /
==== その他
* news/index
* pack_template
* print_format
* glossary
* symref
* marshal_format
* license......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.3 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.4 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って... -
TracePoint
# defined _ class -> Class | module (15350.0) -
メソッドを定義したクラスかモジュールを返します。
...す。
//emlist[例][ruby]{
class C; def foo; end; end
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => C
end.enable do
C.new.foo
end
//}
メソッドがモジュールで定義されていた場合も(include に関係なく)モジュー
ルを返します。
//emlist[例][ruby]......{
module M; def foo; end; end
class C; include M; end;
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => M
end.enable do
C.new.foo
end
//}
[注意] 特異メソッドを実行した場合は TracePoint#defined_class は特異クラ
スを返します。また、Kernel.#set_trace_fun......スではなく元のクラスを返します。
//emlist[例][ruby]{
class C; def self.foo; end; end
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => #<Class:C>
end.enable do
C.foo
end
//}
Kernel.#set_trace_func と TracePoint の上記の差分に注意して
ください。
@s...