Permalink
Browse files

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...
1 parent ac4543e commit 63890957a07ee0a6c93ac8256d02c69a3a06bd60 @dkubb committed Mar 25, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/ice_nine.rb
View
@@ -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
@@ -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

0 comments on commit 6389095

Please sign in to comment.