Class WeatherHacks::ForecastMap::Area
In: lib/weatherhacks.rb
Parent: Object

Methods

new   pref  

Attributes

name  [R] 
prefs  [R] 
rss  [R] 

Public Class methods

[Source]

    # File lib/weatherhacks.rb, line 14
14:       def initialize(name, rss)
15:         @name = name
16:         @rss = rss
17:         @prefs = []
18:       end

Public Instance methods

[Source]

    # File lib/weatherhacks.rb, line 20
20:       def pref(name, &block)
21:         pref = Pref.new(name)
22:         pref.instance_eval(&block)
23:         @prefs << pref
24:         PREF[pref.name] = pref
25:       end

[Validate]