Sha256: aca30bcf8e81fbb058a3ba2910530f289c1cd613dddb37c564eac969481f7ba2
Contents?: true
Size: 306 Bytes
Versions: 19
Compression:
Stored size: 306 Bytes
Contents
module Decanter module Parser class StringParser < ValueParser parser do |val, options| raise Decanter::ParseError.new 'Expects a single value' if val.is_a? Array next if (val.nil? || val === '') next val if val.is_a? String val.to_s end end end end
Version data entries
19 entries across 19 versions & 1 rubygems