# File lib/safe_yaml/transform/to_symbol.rb, line 4 def transform?(value, options=SafeYAML::OPTIONS) if options[:deserialize_symbols] && value =~ %r\A:./ if value =~ %r\A:(["'])(.*)\11\\Z/ return true, $2.sub(%r^:/, "").to_sym else return true, value.sub(%r^:/, "").to_sym end end return false end