module Support::Root
Constants
- LOADERS
- TYPES
Public Class Methods
included(base)
click to toggle source
# File lib/hecks/domain/templates/lib/support/root.rb, line 10 def self.included(base) path = [ '../../domain', base.to_s.split('::')[-2].underscore.downcase, base.to_s.split('::')[-1].underscore.downcase ].join('/') require_relative path + '/repository' TYPES.each do |name| Dir[File.dirname(__FILE__) + "/#{path}/" + name + '/*.rb'] .each { |file| require_relative file } end LOADERS.each { |loader| base.include(loader) } end