"InstanceMethods
" ve "ClassMethods
" adlı iki modülden oluşan bir X modülüne bakıyorum."base.send: include, InstanceMethods" ---> Bu ne yapar?
def self.included(base)
base.send :include, InstanceMethods
base.send :extend, ClassMethods
end
bu ne işe yarar:
modül X son tanım şudur?
Ben kodunuzu olmadığını biliyorum ama bir InstanceMethod modülüne sahip gerek yoktur olduğuna dikkat: Üst modül zaten dahil ediliyor, bu yüzden örnek yöntemleri koymalıyız Orada. – tokland