class Chronic::Handler
def constantize(name)
-
(NameError)
- Raises if this constant could not be found
Returns:
-
(Class)
- The class represented by `name`
Parameters:
-
The
(#to_s
) -- snake_case name representing a Chronic constant
def constantize(name) Chronic.const_get name.to_s.gsub(/(^|_)(.)/) { $2.upcase } end