module RuboCop::OrderedMethods
Our namespace
Constants
- CONFIG_DEFAULT
- PROJECT_ROOT
Public Class Methods
inject_defaults!()
click to toggle source
# File lib/rubocop/ordered_methods.rb, line 9 def self.inject_defaults! path = CONFIG_DEFAULT.to_s hash = ConfigLoader.send(:load_yaml_configuration, path) config = Config.new(hash, path) puts "configuration from #{path}" if ConfigLoader.debug? config = ConfigLoader.merge_with_default(config, path) ConfigLoader.instance_variable_set(:@default_configuration, config) end