Sha256: f0a30b03c19051f5616a9b1b084deae1cc32c38d832f27ef58619564c14e34eb
Contents?: true
Size: 314 Bytes
Versions: 3
Compression:
Stored size: 314 Bytes
Contents
# frozen_string_literal: true module Exclaim module Implementations JOIN_HELPER = ->(config, _env) do items = (config['items'] || config['$join']).to_a separator = config['separator'] || '' items.join(separator) end JOIN_HELPER.define_singleton_method(:helper?) { true } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-exclaim-0.1.1 | lib/exclaim/implementations/join_helper.rb |
ruby-exclaim-0.1.0 | lib/exclaim/implementations/join_helper.rb |
ruby-exclaim-0.0.0 | lib/exclaim/implementations/join_helper.rb |