Sha256: 3c6dd63dda3dbaee52c6e34fd09e72b4b51d48c79fd64aecb7d5fe7078b83ded
Contents?: true
Size: 353 Bytes
Versions: 2
Compression:
Stored size: 353 Bytes
Contents
#Subclass that contains all the drivers as further subclasses. class Baza::Driver #Autoloader for drivers. def self.const_missing(name) require_relative "drivers/#{StringCases.camel_to_snake(name)}.rb" raise LoadError, "Still not loaded: '#{name}'." unless Baza::Driver.const_defined?(name) return Baza::Driver.const_get(name) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
baza-0.0.19 | lib/baza/driver.rb |
baza-0.0.18 | lib/baza/driver.rb |