lib/tanshuku.rb in tanshuku-2.0.0 vs lib/tanshuku.rb in tanshuku-2.0.1
- old
+ new
@@ -13,12 +13,12 @@
# @note
# Mutating a {Tanshuku::Configuration} object is thread-<em><b>unsafe</b></em>. It is recommended to use
# {Tanshuku.configure} for configuration.
def self.config
# Disable this cop but use `Tanshuku::Configuration#configure` for thread-safety.
- # rubocop:disable ThreadSafety/InstanceVariableInClassMethod
+ # rubocop:disable ThreadSafety/ClassInstanceVariable
@config ||= Configuration.new
- # rubocop:enable ThreadSafety/InstanceVariableInClassMethod
+ # rubocop:enable ThreadSafety/ClassInstanceVariable
end
# Configures Tanshuku.
#
# @yieldparam config [Tanshuku::Configuration] A configuration object that is yielded.