included(class_or_module) -> ()[permalink][rdoc][edit]-
self が Module#include されたときに対象のクラスまたはモジュールを引数にしてインタプリタがこのメソッドを呼び出します。
- [PARAM]
class_or_module: - Module#include を実行したオブジェクト
module Trackable def self.included(mod) p "#{mod} include #{self}" end end class Report include Trackable end # => "Report include Trackable"[SEE_ALSO] Module#append_features
- [PARAM]