Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove explicit constant
* No need to specify a constant for a Symbol, especially in this case where it's
  quite clear what it's purpose is.
  • Loading branch information
dkubb committed Mar 25, 2012
1 parent ac4543e commit 6389095
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/ice_nine.rb
Expand Up @@ -14,9 +14,6 @@
# Base IceNine module
module IceNine

# The key to the objects being frozen in the current thread
CURRENT_OBJECTS_KEY = :__ice_nine_current_objects

# Deep Freeze an object
#
# @example
Expand Down Expand Up @@ -59,7 +56,7 @@ def self.recursion_guard(object_id)
#
# @api private
def self.current_objects
Thread.current[CURRENT_OBJECTS_KEY] ||= Set.new
Thread.current[:__ice_nine_current_objects] ||= Set.new
end

private_class_method :current_objects
Expand Down

0 comments on commit 6389095

Please sign in to comment.