def constantize( str )
      str.to_s.split(/[-_]/).map { |v| v.capitalize }.to_s
    end
def constantize( str )
      str.to_s.split(/[-_]/).map { |v| v.capitalize }.to_s
    end
Takes an underscored word and turns it into a class name

 Example:

  constantize("hello") #=> "Hello"
  constantize("hello-there") #=> "HelloThere"
  constantize("hello-there-mate") #=> "HelloThereMate"