Sha256: 93f6499bb5cd6273540483c0e870791aa892a51999cc0dee9f3b169266af2755
Contents?: true
Size: 492 Bytes
Versions: 3
Compression:
Stored size: 492 Bytes
Contents
# frozen_string_literal: true module Rake module Funnel module Extensions module Case module CamelCase def camelize to_s .split('_') .inject([]) { |buffer, e| buffer.push(buffer.empty? ? e : e.capitalize) } .join end end end end end end class String include Rake::Funnel::Extensions::Case::CamelCase end class Symbol include Rake::Funnel::Extensions::Case::CamelCase end
Version data entries
3 entries across 3 versions & 1 rubygems