Method: ActiveSupport::Notifications::Fanout::Subscribers::Matcher.wrap

Defined in:
activesupport/lib/active_support/notifications/fanout.rb

.wrap(pattern) ⇒ Object



341
342
343
344
345
346
347
348
349
# File 'activesupport/lib/active_support/notifications/fanout.rb', line 341

def self.wrap(pattern)
  if String === pattern
    pattern
  elsif pattern.nil?
    AllMessages.new
  else
    new(pattern)
  end
end