Class: Sequent::Core::CurrentEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/sequent/core/current_event.rb

Class Method Summary collapse

Class Method Details

.currentObject



10
11
12
# File 'lib/sequent/core/current_event.rb', line 10

def self.current
  Thread.current[:sequent_current_event]
end

.current=(event) ⇒ Object



6
7
8
# File 'lib/sequent/core/current_event.rb', line 6

def self.current=(event)
  Thread.current[:sequent_current_event] = event
end