Module: OnTheSnow

Defined in:
lib/onthesnow.rb,
lib/onthesnow/api.rb,
lib/onthesnow/config.rb,
lib/onthesnow/helper.rb,
lib/onthesnow/resort/info.rb,
lib/onthesnow/resort/snow.rb,
lib/onthesnow/state/state.rb,
lib/onthesnow/resort/lifts.rb,
lib/onthesnow/region/region.rb,
lib/onthesnow/resort/resort.rb,
lib/onthesnow/resort/slopes.rb,
lib/onthesnow/resort/weather.rb,
lib/onthesnow/resort/elevation.rb

Defined Under Namespace

Modules: Helper, Region, Resort, State Classes: API, Config

Class Method Summary collapse

Class Method Details

.config(&block) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/onthesnow.rb', line 14

def self.config(&block)
  if block_given?
    yield config
  else
    @__config ||= OnTheSnow::Config.new
  end
end