Sha256: 59f6c33a2de2b56e78a5d33faf3a03d6596bdf42bf07c80d9e10da2ed9f621b6
Contents?: true
Size: 267 Bytes
Versions: 3
Compression:
Stored size: 267 Bytes
Contents
# frozen_string_literal: true module Decanter module Parser class JoinParser < ValueParser ITEM_DELIM = ',' parser do |val, options| delimiter = options.fetch(:delimiter, ITEM_DELIM) val.join(delimiter) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
decanter-2.1.2 | lib/decanter/parser/join_parser.rb |
decanter-2.1.1 | lib/decanter/parser/join_parser.rb |
decanter-2.1.0 | lib/decanter/parser/join_parser.rb |