Sha256: b9971ebef36e5affdca919d464634b1e82175309e3aa9f06d8900c471a3942be

Contents?: true

Size: 461 Bytes

Versions: 28

Compression:

Stored size: 461 Bytes

Contents

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

28 entries across 28 versions & 1 rubygems

Version Path
rake-funnel-0.9.1.pre lib/rake/funnel/extensions/case/camel_case.rb
rake-funnel-0.9.0.pre lib/rake/funnel/extensions/case/camel_case.rb
rake-funnel-0.8.0.pre lib/rake/funnel/extensions/case/camel_case.rb
rake-funnel-0.7.0.pre lib/rake/funnel/extensions/case/camel_case.rb
rake-funnel-0.6.1.pre lib/rake/funnel/extensions/case/camel_case.rb
rake-funnel-0.6.0.pre lib/rake/funnel/extensions/case/camel_case.rb
rake-funnel-0.5.0.pre lib/rake/funnel/extensions/case/camel_case.rb
rake-funnel-0.4.0.pre lib/rake/funnel/extensions/case/camel_case.rb