るりまサーチ

最速Rubyリファレンスマニュアル検索!
60件ヒット [1-60件を表示] (0.021秒)

別のキーワード

  1. rake append
  2. mutex_m append_features
  3. readline completion_append_character
  4. readline completion_append_character=
  5. invocationchain append

ライブラリ

クラス

モジュール

キーワード

検索結果

Module#append_features(module_or_class) -> self (41119.0)

モジュール(あるいはクラス)に self の機能を追加します。

...uby]{
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 Mod...

Mutex_m.append_features(klass) -> Class | nil (18113.0)

ユーザが直接、使うことはありません。

...ユーザが直接、使うことはありません。

@see Module#append_features...

void rb_include_module(VALUE klass, VALUE module) (32.0)

Module#append_features の実体。 クラスまたはモジュール klass にモジュール module を インクルードします。

...
Module#append_features
の実体。
クラスまたはモジュール klass にモジュール module を
インクルードします。...

Class (12.0)

クラスのクラスです。

...すが、それ以外のほとんどの機能は Module から継
承されています。Module のメソッドのうち

* Module#module_function
* Module#extend_object
* Module#append_features
* Module#prepend_features
* Module#refine

は Class では未定義にされています。...

Module#included(class_or_module) -> () (12.0)

self が Module#include されたときに対象のクラスまたはモジュー ルを引数にしてインタプリタがこのメソッドを呼び出します。

...このメソッドを呼び出します。

@param class_or_module Module#include を実行したオブジェクト

//emlist[例][ruby]{
module Foo
def self.included(mod)
p "#{mod} include #{self}"
end
end
class Bar
include Foo
end
# => "Bar include Foo"
//}

@see Module#append_features...

絞り込み条件を変える