class Horza::Configuration
Attributes
constant_paths[RW]
Public Class Methods
new()
click to toggle source
# File lib/horza/configuration.rb, line 5 def initialize @constant_paths = [] end
Public Instance Methods
adapter()
click to toggle source
# File lib/horza/configuration.rb, line 13 def adapter @adapter || raise(::Horza::Errors::AdapterError.new("No adapter configured")) end
adapter=(name)
click to toggle source
# File lib/horza/configuration.rb, line 17 def adapter=(name) @adapter = "Horza::Adapters::#{name.to_s.camelize}".constantize if name rescue NameError raise ::Horza::Errors::AdapterError.new("No adapter found for: #{name}") @adapter = nil end
clear_constant_paths()
click to toggle source
# File lib/horza/configuration.rb, line 9 def clear_constant_paths constant_paths.clear end