module

Patty::Profiles::Store

Profiles live as <id>.pattyfile in the profiles dir. Loaded fresh on each request — file counts are tiny and it keeps things cache-free.

Class methods

delete(id : String)
Source
exists?(id : String) : Bool
Source
find(id : String) : Profile | Nil
Source
path_for(id : String) : String
Source
save(profile : Profile) : Profile

Writes canonical YAML under the identity assigned from a filename.

Source