Class: CheekyDreams::ForwardingAuditor
- Inherits:
-
Object
- Object
- CheekyDreams::ForwardingAuditor
- Defined in:
- lib/cheeky-dreams.rb
Instance Method Summary collapse
- #audit(type, message) ⇒ Object
-
#initialize(rules) ⇒ ForwardingAuditor
constructor
A new instance of ForwardingAuditor.
Constructor Details
#initialize(rules) ⇒ ForwardingAuditor
Returns a new instance of ForwardingAuditor.
52 53 54 |
# File 'lib/cheeky-dreams.rb', line 52 def initialize rules @rules = rules end |
Instance Method Details
#audit(type, message) ⇒ Object
56 57 58 |
# File 'lib/cheeky-dreams.rb', line 56 def audit type, @rules[type].audit(type, ) if @rules.has_key?(type) end |