Sha256: f451ffe09ed2da386301465def698fb41a40c3c17f3b1d594d1e918776194be6
Contents?: true
Size: 182 Bytes
Versions: 1
Compression:
Stored size: 182 Bytes
Contents
module Rules def add_rule(name,&block) @rules ||= {} @rules[name] = block end def run_rules(dat) @rules.map do |(name,rule)| rule.call(dat) end if @rules end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
city-watch-0.5.7 | lib/city_watch/util/rules.rb |