<commit_before>module CodyRobbins
  module Classifyize
    def classifyize
      to_s.classify.constantize
    end
  end
end
<commit_msg>Added some documentation.<commit_after>module CodyRobbins
  module ToClass
    # Converts the object in question to Camel case and then tries to find a declared constant with the corresponding name. This combines the functionality of ActiveSupport’s [`camelize`](http://rubydoc.info/gems/activesupport/ActiveSupport/Inflector:camelize) and [`constantize`](http://rubydoc.info/gems/activesupport/ActiveSupport/Inflector:constantize) methods, and allows you to easily get a class from its name with one simple method invokation.
    #
    # @return [Class] The class corresponding to the representation of its name.
    #
    # @example
    #     :user.to_class       #=> User
    #     'user'.to_class      #=> User
    #     :blog_post.to_class  #=> BlogPost
    #     'blog_post'.to_class #=> BlogPost
    def to_class
      to_s.camelize.constantize
    end
  end
end
{'fraction_non_alphanumeric': 0.0805168986083499, 'fraction_numerical': 0.0, 'mean_word_length': 3.436123348017621, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '497958', 'n_tokens_mistral': 302, 'n_tokens_neox': 295, 'n_words': 88}