module Cult::Drivers
Public Instance Methods
all()
click to toggle source
# File lib/cult/drivers/load.rb, line 12 def all Cult::Drivers.constants(false).map do |m| Cult::Drivers.const_get(m) end.select do |cls| ::Cult::Driver > cls end.to_named_array end
load!()
click to toggle source
# File lib/cult/drivers/load.rb, line 5 def load! Dir.glob(File.join(__dir__, "*_driver.rb")).each do |file| require file end end