module Asdf def qwer; "qwer"; end end class Zxcv include Asdf def sdfg; qwer; end #=> "qwer" end class Xcvb def sdfg; Asdf.qwer; end #=> NoMethodError: undefined method `qwer' for Asdf:module end
0 件のコメント:
コメントを投稿