def for_rule(rule_class)
      key = rule_class.to_s[NAMESPACE_PREFIX.length..-1]

      if key
        RuleConfig.new(@rules.fetch(key.to_sym, {}))
      else
        fail InvalidRule, "every rule must begin with #{NAMESPACE_PREFIX}"
      end
    end
def for_rule(rule_class)
      key = rule_class.to_s[NAMESPACE_PREFIX.length..-1]

      if key
        RuleConfig.new(@rules.fetch(key.to_sym, {}))
      else
        fail InvalidRule, "every rule must begin with #{NAMESPACE_PREFIX}"
      end
    end
Initializes new config

 @param [Hash] options
   optional configuration

 @yieldparam [Yardstick::Config] config
   the config object

 @return [Yardstick::Config]

 @api private
 Return config for given rule

 @param [Class] rule_class

 @return [RuleConfig]

 @api private