Sha256: c03a3255c85c82493d8d37b6bfd6ff1334596dedc424a4213f8a66b66de1777c

Contents?: true

Size: 183 Bytes

Versions: 23

Compression:

Stored size: 183 Bytes

Contents

# frozen_string_literal: true

module OhlohScm
  module StringExtensions
    refine String do
      def camelize
        split('_').map(&:capitalize).join
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
ohloh_scm-3.0.3 lib/ohloh_scm/string_extensions.rb
ohloh_scm-3.0.2 lib/ohloh_scm/string_extensions.rb
ohloh_scm-3.0.1 lib/ohloh_scm/string_extensions.rb