Sha256: aa492b7cf683332622d9f5c81e91dcb0208436a33b8e339aead8d08790b2fe13
Contents?: true
Size: 340 Bytes
Versions: 5
Compression:
Stored size: 340 Bytes
Contents
# encoding: utf-8 # Collection of utility methods # @author Gernot Kogler module XapianDb module Utilities # Convert a string to camel case # @param [String] The string to camelize # @return [String] The camelized string def camelize(string) string.split(/[^a-z0-9]/i).map{|w| w.capitalize}.join end end end
Version data entries
5 entries across 5 versions & 1 rubygems