Sha256: 7fa51fde220c4e601655e2ea4f70a9424e86f6c8f4002de4f3fd4bc30c73ccc0

Contents?: true

Size: 847 Bytes

Versions: 10

Compression:

Stored size: 847 Bytes

Contents

module PgEventstore
  class Callbacks
    def initialize: () -> 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

    # _@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

10 entries across 10 versions & 1 rubygems

Version Path
pg_eventstore-1.5.0 sig/pg_eventstore/callbacks.rbs
pg_eventstore-1.4.0 sig/pg_eventstore/callbacks.rbs
pg_eventstore-1.3.4 sig/pg_eventstore/callbacks.rbs
pg_eventstore-1.3.3 sig/pg_eventstore/callbacks.rbs
pg_eventstore-1.3.2 sig/pg_eventstore/callbacks.rbs
pg_eventstore-1.3.1 sig/pg_eventstore/callbacks.rbs
pg_eventstore-1.3.0 sig/pg_eventstore/callbacks.rbs
pg_eventstore-1.2.0 sig/pg_eventstore/callbacks.rbs
pg_eventstore-1.1.5 sig/pg_eventstore/callbacks.rbs
pg_eventstore-1.1.4 sig/pg_eventstore/callbacks.rbs