るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.198秒)
トップページ > クエリ:t[x] > クエリ:Ruby[x] > 種類:インスタンスメソッド[x] > クエリ:r[x] > クエリ:append_features[x]

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils cp_r
  5. fileutils chmod_r

ライブラリ

クラス

検索結果

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

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

...体であり、
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...