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.
783 784 785 786 787 788 |
# File 'lib/vivarium.rb', line 783 def initialize(store:, pid:, tracer:) @store = store @pid = pid @tracer = tracer @stopped = false end |
Instance Method Details
#stop ⇒ Object
790 791 792 793 794 795 796 |
# File 'lib/vivarium.rb', line 790 def stop return if @stopped @tracer.disable @store.unregister_pid(@pid) @stopped = true end |