From 58310877436c17f8889ebfe6c4075308b8ee4c17 Mon Sep 17 00:00:00 2001 From: Hans Dijkema Date: Wed, 9 Jul 2025 21:22:50 +0200 Subject: [PATCH] . --- scribblings/ini.scrbl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scribblings/ini.scrbl b/scribblings/ini.scrbl index 462fa89..d4ba4dc 100644 --- a/scribblings/ini.scrbl +++ b/scribblings/ini.scrbl @@ -93,6 +93,13 @@ If no file is provided, the object operates in-memory only. Subsequent @racket[s Sets the file to use as backing storage for the INI structure. Triggers a reload from disk. } + @defproc[(fail) boolean?]{ + Returns if an error will be thrown when a set! is done and no file has been set to write the contents to} + + @defproc[(fail! [yn boolean?]) boolean?]{ + Sets fail to the given value.} + + @defproc[(reload) void?]{ Reloads the INI content from disk, using the current file path. If the file does not exist, the content is reset to an empty INI structure. @@ -121,6 +128,5 @@ If no file is provided, the object operates in-memory only. Subsequent @racket[s @itemlist[ @item{@racket[file*] — the filename (or @racket[#f])} @item{@racket[content] — the mutable INI structure} - @item{@racket[fail] — when enabled, raises errors instead of returning fallback values} ]