Method: CatchBox::Hook::One#initialize
- Defined in:
- lib/catch_box/hook/one.rb
#initialize(pattern, hook) ⇒ One
Returns a new instance of One.
8 9 10 11 12 |
# File 'lib/catch_box/hook/one.rb', line 8 def initialize(pattern, hook) @pattern = pattern super(hook) end |