Sha256: a450432cc0a7d967cf8e0a6f8d00e8aeca72aaef7a86e1caa4062be18cd2914e
Contents?: true
Size: 314 Bytes
Versions: 95
Compression:
Stored size: 314 Bytes
Contents
module SafeYAML class Transform class ToSymbol MATCHER = /\A:"?(\w+)"?\Z/.freeze def transform?(value, options=nil) options ||= SafeYAML::OPTIONS return false unless options[:deserialize_symbols] && MATCHER.match(value) return true, $1.to_sym end end end end
Version data entries
95 entries across 95 versions & 3 rubygems