module Stasher::CurrentScope

Public Class Methods

clear!() click to toggle source

Clears the current scope

# File lib/stasher/current_scope.rb, line 17
def self.clear!
  Thread.current[:stasher_fields] = nil
end
fields() click to toggle source

Gets the hash of fields in the current scope

# File lib/stasher/current_scope.rb, line 5
def self.fields
  Thread.current[:stasher_fields] ||= {}
end
fields=(values) click to toggle source

Gets the hash of fields in the current scope

# File lib/stasher/current_scope.rb, line 11
def self.fields=(values)
  Thread.current[:stasher_fields] = values
end