Class: Datadog::AppSec::Reactive::Subscriber
- Inherits:
-
Object
- Object
- Datadog::AppSec::Reactive::Subscriber
- Defined in:
- lib/datadog/appsec/reactive/subscriber.rb
Overview
Reactive Engine subscriber
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(&block) ⇒ Subscriber
constructor
A new instance of Subscriber.
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 |