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