Module: CodeownerValidator
- Defined in:
- lib/codeowner_validator.rb,
lib/codeowner_validator/version.rb,
lib/codeowner_validator/validator.rb,
lib/codeowner_validator/code_owners.rb,
lib/codeowner_validator/group/comment.rb,
lib/codeowner_validator/common/command.rb,
lib/codeowner_validator/common/logging.rb,
lib/codeowner_validator/lists/whitelist.rb,
lib/codeowner_validator/cli/validator_cli.rb,
lib/codeowner_validator/common/tasks/base.rb,
lib/codeowner_validator/group/comment/info.rb,
lib/codeowner_validator/group/comment/warn.rb,
lib/codeowner_validator/group/comment/error.rb,
lib/codeowner_validator/tasks/syntax_checker.rb,
lib/codeowner_validator/group/comment/verbose.rb,
lib/codeowner_validator/helpers/config_helper.rb,
lib/codeowner_validator/helpers/utility_helper.rb,
lib/codeowner_validator/tasks/duplicate_checker.rb,
lib/codeowner_validator/tasks/file_exists_checker.rb,
lib/codeowner_validator/tasks/missing_assignment_checker.rb
Overview
rubocop:disable Style/ImplicitRuntimeError
Defined Under Namespace
Modules: Command, Group, Lists, Logging, Tasks, UtilityHelper, Version Classes: CLI, CodeOwners, ConfigHelper, Validator, ValidatorCLI
Constant Summary collapse
- VERSION =
'0.4.0'
Class Method Summary collapse
-
.configure!(attrs = {}) ⇒ Object
Public: Provides the ability to configure instance variables within the module.
Class Method Details
.configure!(attrs = {}) ⇒ Object
Public: Provides the ability to configure instance variables within the module. If the method already exists, the value provide will be overwritten.
15 16 17 18 19 20 21 22 |
# File 'lib/codeowner_validator.rb', line 15 def configure!(attrs = {}) attrs.each do |name, value| name = name.to_s.to_sym # protect against multiple executions singleton_class.instance_eval { attr_accessor name } unless self.class.method_defined?(name) send("#{name}=", value) end end |