def parse_rule_of_type_hash(rule)
      class_name = rule.keys.first
      rule.delete(class_name)
      attributes = rule

      [class_name, attributes]
    end
def parse_rule_of_type_hash(rule)
      class_name = rule.keys.first
      rule.delete(class_name)
      attributes = rule

      [class_name, attributes]
    end
Parses a yaml rule where the rule entry is a string,
 meaning that only the rule class name is given.
 Sample yaml structure:
   ```
     Rails:
       rules:
         - Gem
   ```