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