yaml and pstore
to_enum method returns Enumerator