lib/generators/tanshuku/install_generator.rb in tanshuku-0.0.18 vs lib/generators/tanshuku/install_generator.rb in tanshuku-0.0.19
- old
+ new
@@ -5,10 +5,11 @@
module Tanshuku
# A generator class for Tanshuku configuration files.
#
# @api private
class InstallGenerator < Rails::Generators::Base
- source_root File.expand_path("../templates", __dir__)
+ # Assign `_ = __dir__` because Steep reports `__dir__` which can be a `nil` but I don’t want to care about that.
+ source_root File.expand_path("../templates", _ = __dir__)
# Generates a configuration file +config/initializers/tanshuku.rb+.
#
# @return [void]
def copy_initializer_file