Class: Vivarium::ObservationSession
- Inherits:
-
Object
- Object
- Vivarium::ObservationSession
- Defined in:
- lib/vivarium.rb
Instance Method Summary collapse
-
#initialize(store:, pid:, tracer:) ⇒ ObservationSession
constructor
A new instance of ObservationSession.
- #stop ⇒ Object
Constructor Details
#initialize(store:, pid:, tracer:) ⇒ ObservationSession
Returns a new instance of ObservationSession.
383 384 385 386 387 388 |
# File 'lib/vivarium.rb', line 383 def initialize(store:, pid:, tracer:) @store = store @pid = pid @tracer = tracer @stopped = false end |
Instance Method Details
#stop ⇒ Object
390 391 392 393 394 395 396 |
# File 'lib/vivarium.rb', line 390 def stop return if @stopped @tracer.disable @store.unregister_pid(@pid) @stopped = true end |