Class: ActiveSupport::Notifications::Fanout::Subscribers::Matcher
Do not use. This class is for internal use only.
Relationships & Source Files | |
Namespace Children | |
Classes:
| |
Inherits: | Object |
Defined in: | activesupport/lib/active_support/notifications/fanout.rb |
Class Method Summary
- .new(pattern) ⇒ Matcher constructor
- .wrap(pattern)
Instance Attribute Summary
- #exclusions readonly
- #pattern readonly
Instance Method Summary
Constructor Details
.new(pattern) ⇒ Matcher
Class Method Details
.wrap(pattern)
[ GitHub ]Instance Attribute Details
#exclusions (readonly)
[ GitHub ]# File 'activesupport/lib/active_support/notifications/fanout.rb', line 339
attr_reader :pattern, :exclusions
#pattern (readonly)
[ GitHub ]# File 'activesupport/lib/active_support/notifications/fanout.rb', line 339
attr_reader :pattern, :exclusions
Instance Method Details
#===(name)
[ GitHub ]# File 'activesupport/lib/active_support/notifications/fanout.rb', line 360
def ===(name) pattern === name && !exclusions.include?(name) end
#unsubscribe!(name)
[ GitHub ]# File 'activesupport/lib/active_support/notifications/fanout.rb', line 356
def unsubscribe!(name) exclusions << -name if pattern === name end