るりまサーチ (Ruby 2.4.0)

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

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. fiddle align_uintptr_t
  4. fiddle type_size_t
  5. fiddle type_uintptr_t

ライブラリ

クラス

検索結果

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

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

モジュール(あるいはクラス)に 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, s...