module VG::SO::GenerateCamelizedName

Public Class Methods

call(string) click to toggle source
# File lib/vg/s_o/generate_camelized_name.rb, line 7
def self.call(string)
  string.to_s.gsub(/(?:_|(^))([a-z\d]*)/) { "#{$1}#{$2.capitalize}" }
end