Class: Blogr::Configuration

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/blogr/configuration.rb

Class Method Summary collapse

Class Method Details

.load(path) ⇒ Object


13
14
15
16
17
18
19
# File 'lib/blogr/configuration.rb', line 13

def self.load(path)
  if File.exist?(path)
    require path
  else
    raise ConfigurationError, "Blogr configuration file not found at #{path}"
  end
end