Sha256: 11a6bd7f2f7eb5435718b06a102191096be6eaad177989efaddc9ccb9c73b727

Contents?: true

Size: 440 Bytes

Versions: 28

Compression:

Stored size: 440 Bytes

Contents

# frozen_string_literal: true

module Cmdlet
  # Tokenize and apply case and/or separator
  module Case
    # BackSlash: Convert to back slash notation
    class BackSlash < Cmdlet::BaseCmdlet
      #
      # @param [String|Int] value - value - to be converted
      # @return [String] value converted to back_slash case
      def call(value)
        tokenizer.parse(value, preserve_case: true, separator: '\\')
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
cmdlet-0.6.1 lib/cmdlet/case/back_slash.rb
cmdlet-0.6.0 lib/cmdlet/case/back_slash.rb
cmdlet-0.5.0 lib/cmdlet/case/back_slash.rb
cmdlet-0.4.2 lib/cmdlet/case/back_slash.rb
cmdlet-0.4.1 lib/cmdlet/case/back_slash.rb
cmdlet-0.4.0 lib/cmdlet/case/back_slash.rb
cmdlet-0.3.0 lib/cmdlet/case/back_slash.rb
cmdlet-0.2.1 lib/cmdlet/case/back_slash.rb