Sha256: cd3faff1f054f127a88db467258b93c01be45280150ca1b7bf221e60bfee0ec8
Contents?: true
Size: 451 Bytes
Versions: 28
Compression:
Stored size: 451 Bytes
Contents
# frozen_string_literal: true module Cmdlet # Tokenize and apply case and/or separator module Case # Constant: Constant case the characters in the given 'string' class Constant < Cmdlet::BaseCmdlet # # @param [String|Int] value - value - to be converted # @return [String] value converted to constant case def call(value) tokenizer.parse(value, separator: '_').upcase end end end end
Version data entries
28 entries across 28 versions & 1 rubygems