概要
Module#extended(obj) -> object
詳細
モジュール mod をインクルードする。
サンプルコード
module Hogeable def hogeable print 'hogeable' end end class Hoge include Hogeable end Hoge.new.hogeable
出力
$ ruby include.rb hogeable
Module#extended(obj) -> object
モジュール mod をインクルードする。
module Hogeable def hogeable print 'hogeable' end end class Hoge include Hogeable end Hoge.new.hogeable
$ ruby include.rb hogeable