Method: WeatherCli::Weather#initialize
- Defined in:
- lib/weathercli/weather.rb
#initialize(location, *options) ⇒ Weather
Returns a new instance of Weather.
8 9 10 11 |
# File 'lib/weathercli/weather.rb', line 8 def initialize(location, *) @location = location @options = Hash[.map { |o| [o, true] }] end |