Sha256: 604b555d2f5b9ce5b5a494dcb866ba3e50b3a45bbe5ffd07a68535e8159fef72
Contents?: true
Size: 367 Bytes
Versions: 96
Compression:
Stored size: 367 Bytes
Contents
module SafeYAML class Transform class ToNil include TransformationMap set_predefined_values({ "" => nil, "~" => nil, "null" => nil, }) def transform?(value) return false if value.length > 4 return PREDEFINED_VALUES.include?(value), PREDEFINED_VALUES[value] end end end end
Version data entries
96 entries across 96 versions & 3 rubygems