Sha256: 9d74dfd11b8266680a5782e2d527f49be21b6b5c5979201120e9b866b6526e38

Contents?: true

Size: 420 Bytes

Versions: 24

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal: true

module Handlebarsjs
  module Helpers
    # Tokenize and apply case and/or separator
    module Case
      # Lamel: Lower camel case the characters in the given 'string'
      class Lamel < Handlebarsjs::BaseHelper
        register_cmdlet(Cmdlet::Case::Lamel)

        def to_proc
          ->(value, _opts) { wrapper(cmdlet.call(value)) }
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
handlebarsjs-0.5.5 lib/handlebarsjs/helpers/case/lamel.rb
handlebarsjs-0.5.4 lib/handlebarsjs/helpers/case/lamel.rb
handlebarsjs-0.5.3 lib/handlebarsjs/helpers/case/lamel.rb
handlebarsjs-0.5.2 lib/handlebarsjs/helpers/case/lamel.rb