Method: Beaver::Dam#initialize
- Defined in:
- lib/beaver/dam.rb
#initialize(name, matchers = {}, &callback) ⇒ Dam
Name should be a unique symbol. Matchers is an options Hash. The callback will be evauluated within the context of a Beaver::Request.
68 69 70 71 72 73 |
# File 'lib/beaver/dam.rb', line 68 def initialize(name, matchers={}, &callback) @name = name @callback = callback @hits = [] build matchers end |