Method: Forecast::Config#initialize

Defined in:
lib/forecast/config.rb

#initializeConfig

Returns a new instance of Config.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/forecast/config.rb', line 7

def initialize
  
  @config_file = nil 
  @provider||= :open_weather_map
  self.load(File.dirname(__FILE__) + '/**/*.yml')
  
  def theme
    if @theme != nil 
      if @theme.is_a?(Hash)
        return @theme
      end
      if themes[@theme] != nil
        return themes[@theme]
      end
    end
    return @theme
  end
end