Sha256: 95d4311e7b17a09883c3b0a19de9e67e582887746dae6d85085f4f05293c70d2
Contents?: true
Size: 642 Bytes
Versions: 28
Compression:
Stored size: 642 Bytes
Contents
# frozen_string_literal: true module Cmdlet # Tokenize and apply case and/or separator module Case # Title: Title case the characters in the given 'string' class Title < Cmdlet::BaseCmdlet # # @param [String|Int] value - value - to be converted # @return [String] value converted to title case def call(value) tokenizer.parse(value, separator: ' ', preserve_case: true, compress_prefix_numerals: false, compress_suffix_numerals: false) .titleize end end end end
Version data entries
28 entries across 28 versions & 1 rubygems