lib/codeowner_validator.rb
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
# Public: Provides the ability to configure instance variables within the module.  If the
# method already exists, the value provide will be overwritten.
#
# @params [Hash] attrs The key/value paired items to be configured on the module.
Provides the ability to configure instance variables within the module.  If the
method already exists, the value provide will be overwritten.
Provides the ability to configure instance variables within the module . If the method already exists the value provide will be overwritten .
def configure!(attrs = {})
      attrs.each do |name, value|
        name = name.to_s.to_sym
        singleton_class.instance_eval { attr_accessor name } unless self.class.method_defined?(name)
        send("#{name}=", value)
      end
    end
def configure! ( attrs = { } ) attrs . each do | name , value | name = name . to_s . to_sym singleton_class . instance_eval { attr_accessor name } unless self . class . method_defined? ( name ) send ( "#{name}=" , value ) end end
Public: Provides the ability to configure instance variables within the module.
Public : Provides the ability to configure instance variables within the module .
# protect against multiple executions
attrs
params
[Hash] attrs The key/value paired items to be configured on the module.
[ Hash ] attrs The key / value paired items to be configured on the module .