Class: RubocopRailsConfig::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- RubocopRailsConfig::Generators::InstallGenerator
- Defined in:
- lib/generators/rubocop_rails_config/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_config_file ⇒ Object
11 12 13 14 |
# File 'lib/generators/rubocop_rails_config/install_generator.rb', line 11 def create_config_file file_method = config_file_exists? ? :prepend : :create send :"#{file_method}_file", config_file_path, config_file_content end |