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