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-4.0.4 lib/ohloh_scm/string_extensions.rb
ohloh_scm-4.0.3 lib/ohloh_scm/string_extensions.rb
ohloh_scm-4.0.2 lib/ohloh_scm/string_extensions.rb
ohloh_scm-4.0.1 lib/ohloh_scm/string_extensions.rb
ohloh_scm-3.0.21 lib/ohloh_scm/string_extensions.rb
ohloh_scm-3.0.19 lib/ohloh_scm/string_extensions.rb
ohloh_scm-3.0.17 lib/ohloh_scm/string_extensions.rb
ohloh_scm-3.0.16 lib/ohloh_scm/string_extensions.rb
ohloh_scm-3.0.15 lib/ohloh_scm/string_extensions.rb
ohloh_scm-3.0.14 lib/ohloh_scm/string_extensions.rb
ohloh_scm-3.0.13 lib/ohloh_scm/string_extensions.rb
ohloh_scm-3.0.12 lib/ohloh_scm/string_extensions.rb
ohloh_scm-3.0.11 lib/ohloh_scm/string_extensions.rb
ohloh_scm-3.0.10 lib/ohloh_scm/string_extensions.rb
ohloh_scm-3.0.9 lib/ohloh_scm/string_extensions.rb
ohloh_scm-3.0.8 lib/ohloh_scm/string_extensions.rb
ohloh_scm-3.0.7 lib/ohloh_scm/string_extensions.rb
ohloh_scm-3.0.6 lib/ohloh_scm/string_extensions.rb
ohloh_scm-3.0.5 lib/ohloh_scm/string_extensions.rb
ohloh_scm-3.0.4 lib/ohloh_scm/string_extensions.rb