module RuleBox::Util
Public Class Methods
camelize(string)
click to toggle source
# File lib/rule_box/util.rb, line 5 def camelize(string) strings = string.split('_') new_string = '' strings.each do |word| new_string += word[0].upcase + word[1..-1] end new_string.gsub('/', '::') end