Sha256: f34c253c3b72a861dc12e0d7e2250721942247b82b0f329a7ab1420c62fe1b91
Contents?: true
Size: 208 Bytes
Versions: 2
Compression:
Stored size: 208 Bytes
Contents
class SiteHub module Rules def rule rule=nil return @rule unless rule @rule = rule end def applies?(env) return true unless rule rule.call(env) == true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sitehub-0.4.2 | lib/sitehub/rules.rb |
sitehub-0.4.1 | lib/sitehub/rules.rb |