module ContextualExceptions
Constants
- VERSION
Public Class Methods
string_to_camel_case(string)
click to toggle source
@return This string in camel-case class name form.
# File lib/contextual_exceptions/class_refinement.rb, line 5 def self.string_to_camel_case(string) class_name = string.to_s.capitalize class_name.gsub(/[_\s]+./) { |match| match = match[1,].capitalize } end