module WithEvents::ClassMethods

Public Instance Methods

stream(name, options = {}, &block) click to toggle source
# File lib/with_events.rb, line 12
def stream(name, options = {}, &block)
  Stream.find_or_initialize(name, self, options)
        .reset_configure_all
        .instance_exec(&block)
end