Sha256: f2d1b5558b5949590b71f46fed81a0698d436616ff3b652d3062773affa745ee
Contents?: true
Size: 510 Bytes
Versions: 24
Compression:
Stored size: 510 Bytes
Contents
# frozen_string_literal: true module Handlebarsjs module Helpers # Array handling routines, eg. join, join_prefix, join_post module Array # JoinPost: join an array of values with separator as a string and using the separator at the end of string class JoinPost < Handlebarsjs::BaseHelper register_cmdlet(Cmdlet::Array::JoinPost) 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