Method: Tanshuku.config

Defined in:
lib/tanshuku.rb

.configTanshuku::Configuration

Note:

Mutating a Configuration object is thread-unsafe. It is recommended to use configure for configuration.

Returns a configuration object for Tanshuku.



16
17
18
19
20
21
# File 'lib/tanshuku.rb', line 16

def self.config
  # Disable this cop but use `Tanshuku::Configuration#configure` for thread-safety.
  # rubocop:disable ThreadSafety/ClassInstanceVariable
  @config ||= Configuration.new
  # rubocop:enable ThreadSafety/ClassInstanceVariable
end