Module: Fiveruns::Dash::Context

Defined in:
lib/fiveruns/dash.rb

Class Method Summary collapse

Class Method Details

.contextObject



151
152
153
# File 'lib/fiveruns/dash.rb', line 151

def self.context
  Thread.current[:fiveruns_dash_context] ||= []
end

.resetObject



147
148
149
# File 'lib/fiveruns/dash.rb', line 147

def self.reset
  Thread.current[:fiveruns_dash_context] = []
end

.set(value) ⇒ Object



143
144
145
# File 'lib/fiveruns/dash.rb', line 143

def self.set(value)
  Thread.current[:fiveruns_dash_context] = value
end