Sha256: 31e4c2b8f008be721dcee5af601856f195a3a84b1158429028c8baf57caf8b12

Contents?: true

Size: 441 Bytes

Versions: 28

Compression:

Stored size: 441 Bytes

Contents

# frozen_string_literal: true

module Cmdlet
  # Tokenize and apply case and/or separator
  module Case
    # Lower: Lower case the characters in the given 'string'
    class Lower < Cmdlet::BaseCmdlet
      #
      # @param [String|Int] value - value - to be converted
      # @return [String] value converted to lower case
      def call(value)
        return '' if value.nil?

        value.downcase
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
cmdlet-0.14.0 lib/cmdlet/case/lower.rb
cmdlet-0.13.2 lib/cmdlet/case/lower.rb
cmdlet-0.13.1 lib/cmdlet/case/lower.rb
cmdlet-0.13.0 lib/cmdlet/case/lower.rb
cmdlet-0.12.5 lib/cmdlet/case/lower.rb
cmdlet-0.12.4 lib/cmdlet/case/lower.rb
cmdlet-0.12.3 lib/cmdlet/case/lower.rb
cmdlet-0.12.2 lib/cmdlet/case/lower.rb
cmdlet-0.12.1 lib/cmdlet/case/lower.rb
cmdlet-0.12.0 lib/cmdlet/case/lower.rb
cmdlet-0.11.0 lib/cmdlet/case/lower.rb
cmdlet-0.10.1 lib/cmdlet/case/lower.rb
cmdlet-0.10.0 lib/cmdlet/case/lower.rb
cmdlet-0.9.2 lib/cmdlet/case/lower.rb
cmdlet-0.9.1 lib/cmdlet/case/lower.rb
cmdlet-0.9.0 lib/cmdlet/case/lower.rb
cmdlet-0.8.0 lib/cmdlet/case/lower.rb
cmdlet-0.7.1 lib/cmdlet/case/lower.rb
cmdlet-0.7.0 lib/cmdlet/case/lower.rb
cmdlet-0.6.2 lib/cmdlet/case/lower.rb