module ObjectTable::Factory::ClassMethods
Public Instance Methods
__table_cls__()
click to toggle source
# File lib/object_table/factory.rb, line 17 def __table_cls__ self end
fully_include(mixin)
click to toggle source
# File lib/object_table/factory.rb, line 21 def fully_include(mixin) include(mixin) constants = constants(false) CLASS_MAP.each do |name, const| child_cls = send(name) # create a new subclass if there isn't already one child_cls = const_set(const, Class.new(child_cls)) unless constants.include?(child_cls) child_cls.send(:include, mixin) end end