Class: Datadog::AppSec::Reactive::Subscriber

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/appsec/reactive/subscriber.rb

Overview

Reactive Engine subscriber

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Subscriber

Returns a new instance of Subscriber.



8
9
10
11
# File 'lib/datadog/appsec/reactive/subscriber.rb', line 8

def initialize(&block)
  @block = block
  freeze
end

Instance Method Details

#call(*args) ⇒ Object



13
14
15
# File 'lib/datadog/appsec/reactive/subscriber.rb', line 13

def call(*args)
  @block.call(*args)
end