137件ヒット
[1-100件を表示]
(0.215秒)
ライブラリ
- ビルトイン (49)
-
irb
/ context (11) -
rdoc
/ code _ object (22) -
rdoc
/ context (33) -
rdoc
/ stats (22)
クラス
-
IRB
:: Context (11) - Module (38)
- Object (11)
-
RDoc
:: CodeObject (22) -
RDoc
:: Context (33) -
RDoc
:: Stats (22)
キーワード
- ancestors (11)
-
append
_ features (11) -
const
_ source _ location (5) -
document
_ children= (11) -
each
_ classmodule (11) - extend (11)
-
initialize
_ classes _ and _ modules (11) -
load
_ modules (11) -
num
_ modules (11) -
num
_ modules= (11) - prepend (11)
-
remove
_ classes _ and _ modules (11)
検索結果
先頭5件
-
RDoc
:: Context # modules -> [RDoc :: NormalModule] (21302.0) -
追加された RDoc::NormalModule の配列を返します。
...追加された RDoc::NormalModule の配列を返します。... -
RDoc
:: CodeObject # remove _ classes _ and _ modules -> () (18302.0) -
何もしません。RDoc::CodeObject#document_children= に false を指定 した時のコールバックとして呼び出されます。オーバーライドして使用します。
...何もしません。RDoc::CodeObject#document_children= に false を指定
した時のコールバックとして呼び出されます。オーバーライドして使用します。... -
RDoc
:: Context # initialize _ classes _ and _ modules -> () (18302.0) -
追加されたクラスやモジュールをクリアします。
追加されたクラスやモジュールをクリアします。 -
IRB
:: Context # load _ modules -> [String] (15318.0) -
irb の起動時に -r オプション指定で読み込まれたライブラリ、~/.irbrc など の設定ファイル内で IRB.conf[:LOAD_MODULES] 指定で読み込まれたライブラリ の名前の配列を返します。
...irb の起動時に -r オプション指定で読み込まれたライブラリ、~/.irbrc など
の設定ファイル内で IRB.conf[:LOAD_MODULES] 指定で読み込まれたライブラリ
の名前の配列を返します。... -
RDoc
:: Stats # num _ modules=(val) (15302.0) -
解析したモジュールの数を指定します。
...解析したモジュールの数を指定します。
@param val 数値を指定します。... -
RDoc
:: Stats # num _ modules -> Integer (15202.0) -
解析したモジュールの数を返します。
解析したモジュールの数を返します。 -
Module
# const _ source _ location(name , inherited = true) -> [String , Integer] (12261.0) -
name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。
...
name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。
@param name Symbol,String で定数の名前を指定します。
@param inherited true を指定するとスーパークラスや include したモジュールで定義され......た定数が対象にはなります。false を指定した場合 対象にはなりません。
@return ソースコードのファイル名と行番号を配列で返します。
指定した定数が見つからない場合は nil を返します。
定数は見つかったがソ......rb:
class A # line 1
C1 = 1
C2 = 2
end
module M # line 6
C3 = 3
end
class B < A # line 10
include M
C4 = 4
end
class A # 継続して A を定義する
C2 = 8 # 定数を再定義する
end
p B.const_source_location('C4') # => ["test.rb", 12]
p B.const_so... -
Module
# ancestors -> [Class , Module] (12213.0) -
クラス、モジュールのスーパークラスとインクルードしているモジュール を優先順位順に配列に格納して返します。
...順位順に配列に格納して返します。
//emlist[例][ruby]{
module Foo
end
class Bar
include Foo
end
class Baz < Bar
p ancestors
p included_modules
p superclass
end
# => [Baz, Bar, Foo, Object, Kernel, BasicObject]
# => [Foo, Kernel]
# => Bar
//}
@see Module#included_modules......先順位順に配列に格納して返します。
//emlist[例][ruby]{
module Foo
end
class Bar
include Foo
end
class Baz < Bar
p ancestors
p included_modules
p superclass
end
# => [Baz, Bar, Foo, Object, Kernel, BasicObject]
# => [Foo, Kernel]
# => Bar
//}
@see Module#included_modules... -
Module
# append _ features(module _ or _ class) -> self (12213.0) -
モジュール(あるいはクラス)に self の機能を追加します。
...Module#include の実体であり、
include を Ruby で書くと以下のように定義できます。
//emlist[例][ruby]{
def include(*modules)
modules.reverse_each do |mod|
# append_features や included はプライベートメソッドなので
# 直接 mod.append_features(self)......などとは書けない
mod.__send__(:append_features, self)
mod.__send__(:included, self)
end
end
//}
@see Module#included... -
RDoc
:: Context # each _ classmodule {|m| . . . } -> [RDoc :: SingleClass | RDoc :: NormalClass | RDoc :: NormalModule] (9207.0) -
追加されたクラス、モジュールに対してブロックを評価します。
...追加されたクラス、モジュールに対してブロックを評価します。
@see RDoc::Context#classes, RDoc::Context#modules...