class CatchBox::Hook::One

Public Class Methods

new(pattern, hook) click to toggle source
Calls superclass method CatchBox::Hook::new
# File lib/catch_box/hook/one.rb, line 8
def initialize(pattern, hook)
  @pattern = pattern

  super(hook)
end

Public Instance Methods

match?(pattern) click to toggle source
# File lib/catch_box/hook/one.rb, line 14
def match?(pattern)
  @pattern == pattern
end