# File lib/configatron/store.rb, line 51 def store(key, value) if @root_store.locked? ::Kernel.raise ::Configatron::LockedError.new("Cannot set key #{key} for locked #{self}") end key = key.to_sym if @root_store.__cow != @cow copy = @root_store.__cow_path(@path) # Cow should now match, so this won't recurse. (Note this is # not particularly thread-safe.) copy.store(key, value) else @attributes[key] = value end end