Sha256: 4fe5a0f691eb2828d3ff8025f45c7f8b9680305ec1a0bca8535c7d25fe1fc09b
Contents?: true
Size: 354 Bytes
Versions: 2
Compression:
Stored size: 354 Bytes
Contents
# frozen_string_literal: true require 'active_support' module Takwimu module Notifications class Base def self.subscribe! subscription = ActiveSupport::Notifications.subscribe(event_name, &method(:callback)) subscription end def self.callback raise "#handle not implemented" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
takwimu-0.1.1 | lib/takwimu/notifications/base.rb |
takwimu-0.1.0 | lib/takwimu/notifications/base.rb |