Sha256: fd5f0381c4c873a485cb789df6d49945d703e3333fa7d015ece702c1f09fc18f

Contents?: true

Size: 462 Bytes

Versions: 16

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

module Cmdlet
  # Miscellaneous cmdlets
  module Misc
    # Safe: pass through the value with <> and single and double quotes left as is
    class Safe < Cmdlet::BaseCmdlet
      #
      # @param [String|Int] value - value to pass through
      # @return [String] the value with &lt;&gt; and single and double quotes left as is
      def call(value)
        value = '' if value.nil?
        value
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cmdlet-0.14.0 lib/cmdlet/misc/safe.rb
cmdlet-0.13.2 lib/cmdlet/misc/safe.rb
cmdlet-0.13.1 lib/cmdlet/misc/safe.rb
cmdlet-0.13.0 lib/cmdlet/misc/safe.rb
cmdlet-0.12.5 lib/cmdlet/misc/safe.rb
cmdlet-0.12.4 lib/cmdlet/misc/safe.rb
cmdlet-0.12.3 lib/cmdlet/misc/safe.rb
cmdlet-0.12.2 lib/cmdlet/misc/safe.rb
cmdlet-0.12.1 lib/cmdlet/misc/safe.rb
cmdlet-0.12.0 lib/cmdlet/misc/safe.rb
cmdlet-0.11.0 lib/cmdlet/misc/safe.rb
cmdlet-0.10.1 lib/cmdlet/misc/safe.rb
cmdlet-0.10.0 lib/cmdlet/misc/safe.rb
cmdlet-0.9.2 lib/cmdlet/misc/safe.rb
cmdlet-0.9.1 lib/cmdlet/misc/safe.rb
cmdlet-0.9.0 lib/cmdlet/misc/safe.rb