Module: Solid::Result::EventLogs::Listener

Included in:
Null, Solid::Result::EventLogs::Listeners::Chain
Defined in:
lib/solid/result/event_logs/listener.rb

Defined Under Namespace

Modules: ClassMethods, Null

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



19
20
21
# File 'lib/solid/result/event_logs/listener.rb', line 19

def self.extended(base)
  base.extend(ClassMethods)
end

.included(base) ⇒ Object



15
16
17
# File 'lib/solid/result/event_logs/listener.rb', line 15

def self.included(base)
  base.extend(ClassMethods)
end

.kind?(arg) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/solid/result/event_logs/listener.rb', line 23

def self.kind?(arg)
  (arg.is_a?(::Class) && arg < self) || (arg.is_a?(::Module) && arg.is_a?(self)) || arg.is_a?(Listeners::Chain)
end

Instance Method Details

#around_and_then(scope:, and_then:) ⇒ Object



33
34
35
# File 'lib/solid/result/event_logs/listener.rb', line 33

def around_and_then(scope:, and_then:)
  yield
end

#around_event_logs(scope:) ⇒ Object



29
30
31
# File 'lib/solid/result/event_logs/listener.rb', line 29

def around_event_logs(scope:)
  yield
end

#before_interruption(exception:, event_logs:) ⇒ Object



41
# File 'lib/solid/result/event_logs/listener.rb', line 41

def before_interruption(exception:, event_logs:); end

#on_finish(event_logs:) ⇒ Object



39
# File 'lib/solid/result/event_logs/listener.rb', line 39

def on_finish(event_logs:); end

#on_record(record:) ⇒ Object



37
# File 'lib/solid/result/event_logs/listener.rb', line 37

def on_record(record:); end

#on_start(scope:) ⇒ Object



27
# File 'lib/solid/result/event_logs/listener.rb', line 27

def on_start(scope:); end