Sha256: b3617d461665bb16f0de6329e4bbbd76c0722b67caf3335c331c120685ba7372

Contents?: true

Size: 414 Bytes

Versions: 24

Compression:

Stored size: 414 Bytes

Contents

# frozen_string_literal: true

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

        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/slash.rb
handlebarsjs-0.5.4 lib/handlebarsjs/helpers/case/slash.rb
handlebarsjs-0.5.3 lib/handlebarsjs/helpers/case/slash.rb
handlebarsjs-0.5.2 lib/handlebarsjs/helpers/case/slash.rb