Sha256: 4021fcd38a4dd7a8a7a5c860ef975333296c54e39e97db5f7a023395b614f4a8
Contents?: true
Size: 513 Bytes
Versions: 24
Compression:
Stored size: 513 Bytes
Contents
# frozen_string_literal: true module Handlebarsjs module Helpers # Array handling routines, eg. join, join_prefix, join_post module Array # JoinPre: join an array of values with separator as a string and using the separator at the beginning of string class JoinPre < Handlebarsjs::BaseHelper register_cmdlet(Cmdlet::Array::JoinPre) def to_proc ->(values, separator = ',', _opts) { wrapper(cmdlet.call(values, separator)) } end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems