Sha256: 90502260ee1308df5b01941e15191afd5f14c16d2e9494472fa0141e0c7fa10d

Contents?: true

Size: 296 Bytes

Versions: 5

Compression:

Stored size: 296 Bytes

Contents

# frozen_string_literal: true

module Darthjee
  module CoreExt
    module Symbol
      def camelize(type = :upper)
        to_s.camelize(type).to_sym
      end

      def underscore
        to_s.underscore.to_sym
      end
    end
  end
end

class Symbol
  include Darthjee::CoreExt::Symbol
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
darthjee-core_ext-1.7.4 lib/darthjee/core_ext/symbol.rb
darthjee-core_ext-1.7.3 lib/darthjee/core_ext/symbol.rb
darthjee-core_ext-1.7.2 lib/darthjee/core_ext/symbol.rb
darthjee-core_ext-1.7.1 lib/darthjee/core_ext/symbol.rb
darthjee-core_ext-1.7.0 lib/darthjee/core_ext/symbol.rb