class CatchBox::Hook::Factory
Public Instance Methods
call(pattern, hook)
click to toggle source
# File lib/catch_box/hook/factory.rb, line 9 def call(pattern, hook) if pattern.nil? ::CatchBox::Hook::All.new(hook) else ::CatchBox::Hook::One.new(pattern, hook) end end