class
Creestal::Core::FileEntry
- Creestal::Core::FileEntry
- Reference
- Object
Defined in:
core/file_entry.crConstructors
Instance Method Summary
-
#changed? : Bool
True if the file on disk differs from the baseline set at construction or the last reload!.
-
#content : String
Pure read — never touches @sha256.
- #full_path : String
- #relative_path : String
-
#reload! : FileEntry
Re-baselines the stored hash to the current file contents.
- #sha256 : String
- #type : String
Constructor Detail
Instance Method Detail
def changed? : Bool
#
True if the file on disk differs from the baseline set at construction or the last reload!.
Re-baselines the stored hash to the current file contents. Call this after a change has been detected and acted on so that subsequent changed? calls measure from the new baseline.