Sha256: dad37bb8704625bd7d1ba8ce0c5e575ae1e0f787574cd6fc532eb3cc7c0816e3

Contents?: true

Size: 957 Bytes

Versions: 2

Compression:

Stored size: 957 Bytes

Contents

module PgEventstore
  class Callbacks
    def initialize: () -> void

    def clear: -> void

    # _@param_ `action` — an object, that represents your action. In most cases you want to use a symbol there
    #
    # _@param_ `filter` — callback filter. Supported values are :before, :after and :around
    #
    # _@param_ `callback`
    def define_callback: (untyped action, Symbol filter, _Callback callback) -> void

    def remove_callback: (untyped action, Symbol filter, _Callback callback) -> void

    # _@param_ `action` — an action to run
    def run_callbacks: (untyped action, *untyped args, **untyped kwargs) ?{ () -> untyped } -> untyped

    def run_before_callbacks: (untyped action, *untyped args, **untyped kwargs) -> void

    def run_around_callbacks: (untyped action, *untyped args, **untyped kwargs) ?{ () -> untyped } -> untyped

    def run_after_callbacks: (untyped action, *untyped args, **untyped kwargs) -> void
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pg_eventstore-1.7.0 sig/pg_eventstore/callbacks.rbs
pg_eventstore-1.6.0 sig/pg_eventstore/callbacks.rbs