Sha256: 3ac333beaadea5c9422b6ec80eabdc7b356f9cbce01b5fd4fe5144ceb527be82

Contents?: true

Size: 309 Bytes

Versions: 13

Compression:

Stored size: 309 Bytes

Contents

# frozen_string_literal: true

module ServiceSkeleton
  module SignalsMethods
    def registered_signal_handlers
      @registered_signal_handlers || []
    end

    def hook_signal(sigspec, &blk)
      @registered_signal_handlers ||= []

      @registered_signal_handlers << [sigspec, blk]
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
service_skeleton-2.2.0 lib/service_skeleton/signals_methods.rb
service_skeleton-2.1.0 lib/service_skeleton/signals_methods.rb
service_skeleton-1.0.5 lib/service_skeleton/signals_methods.rb
service_skeleton-2.0.2 lib/service_skeleton/signals_methods.rb
service_skeleton-2.0.1 lib/service_skeleton/signals_methods.rb
service_skeleton-2.0.0 lib/service_skeleton/signals_methods.rb
service_skeleton-1.0.4 lib/service_skeleton/signals_methods.rb
service_skeleton-0.0.0.1.ENOTAG lib/service_skeleton/signals_methods.rb
service_skeleton-1.0.3 lib/service_skeleton/signals_methods.rb
service_skeleton-1.0.2 lib/service_skeleton/signals_methods.rb
service_skeleton-1.0.1 lib/service_skeleton/signals_methods.rb
service_skeleton-0.0.0.49.g47046b9 lib/service_skeleton/signals_methods.rb
service_skeleton-0.0.0.48.g4a40599 lib/service_skeleton/signals_methods.rb