Sha256: a526cb422136c35a71b087b8ad47442d7922e864c5dc342fe699d1fc3adcf3a5

Contents?: true

Size: 467 Bytes

Versions: 1

Compression:

Stored size: 467 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] values - valure to pass throught
      # @return [String] the value with &lt;&gt; and single and double quotes left as is
      def call(_values)
        value = '' if value.nil?
        value
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cmdlet-0.8.0 lib/cmdlet/misc/safe.rb