Flowdock
method

subscribe

Importance_0
v4.0.2 - Show latest stable - 0 notes - Class: ActiveSupport::Notifications::Fanout
subscribe(pattern = nil, block = Proc.new) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/notifications/fanout.rb, line 19
      def subscribe(pattern = nil, block = Proc.new)
        subscriber = Subscribers.new pattern, block
        synchronize do
          @subscribers << subscriber
          @listeners_for.clear
        end
        subscriber
      end
Register or log in to add new notes.