Sha256: df5c37a1b60d6e792aecb9397742e71cb15cd2218d07776ea699b0197a94e852
Contents?: true
Size: 318 Bytes
Versions: 17
Compression:
Stored size: 318 Bytes
Contents
module WeatherFetcher class ProviderList def self.providers(speed = 0.7) classes = WeatherFetcher::Provider.constants classes = classes.collect{|c| WeatherFetcher::Provider.const_get c}.select{|c| c.kind_of? Class} classes.select{|k| not defined? k::SLOW or k::SLOW <= speed} end end end
Version data entries
17 entries across 17 versions & 1 rubygems