module Tablets::Global::Loader
Tablets
loader Manages files loading from app tablets directory
Public Instance Methods
load!()
click to toggle source
Loads tablets files
# File lib/tablets/global/loader.rb, line 7 def load! files.each { |file| load file } end
Private Instance Methods
files()
click to toggle source
Prepares files list using load paths
# File lib/tablets/global/loader.rb, line 19 def files load_paths.flatten.compact.uniq.flat_map do |path| Dir["#{path}/**/*.rb"] end end
load_paths()
click to toggle source
Load paths
# File lib/tablets/global/loader.rb, line 14 def load_paths [Tablets.tablets_dir] end