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