Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
AgentApropos::SessionState
Inherits
Reference
<
Object
Constants
DIR =
Path
[".cache", "agent-apropos", "sessions"]
LEADING_REJECT = {'.', '-'}
MAX_AGE = 7.days
MAX_ID_BYTES = 230
Constructors
load
(repo_root :
Path
, fs :
Filesystem
, session_id :
String
|
Nil
) :
SessionState
Source
new
(injected :
Hash
(
String
,
Injection
) = {} of
String
=>
Injection
, notified :
Bool
= false)
Source
Class methods
file_for
(repo_root :
Path
, session_id :
String
) :
Path
Source
key?
(session_id :
String
|
Nil
) :
String
|
Nil
Source
prune
(repo_root :
Path
, fs :
Filesystem
, now :
Time
) :
Nil
Source
Instance methods
add
(rule_path :
String
, cause :
Cause
) :
Nil
Source
injected
Source
injected?
(rule_path :
String
) :
Bool
Source
notified?
Source
notify!
Source
save
(repo_root :
Path
, fs :
Filesystem
, session_id :
String
|
Nil
, now :
Time
) :
Nil
Source
Nested types
AgentApropos::SessionState::Cause
AgentApropos::SessionState::Document
AgentApropos::SessionState::Injection