Module: Jitimage::Config
- Defined in:
- lib/jitimage/config.rb
Constant Summary collapse
- @@settings =
{ :background => 'transparent', :color => 'black', :font => '*', :font_dir => '/lib/fonts/', :format => 'png', :img_path => '/content/jitimage/', :size => 13 }
Class Method Summary collapse
Class Method Details
.read ⇒ Object
12 13 14 15 16 17 |
# File 'lib/jitimage/config.rb', line 12 def self.read config = "#{RAILS_ROOT}/config/jitimage.yml" if File.exist?(config) YAML.load_file(config)[RAILS_ENV].each {|key, value| @@settings[key.to_sym] = value} end end |
.settings ⇒ Object
19 20 21 |
# File 'lib/jitimage/config.rb', line 19 def self.settings @@settings end |