roos adjustment
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,3 +5,4 @@ compiled/
|
|||||||
*.bak
|
*.bak
|
||||||
\#*
|
\#*
|
||||||
.\#*
|
.\#*
|
||||||
|
/test.ini
|
||||||
|
|||||||
2
info.rkt
2
info.rkt
@@ -1,7 +1,7 @@
|
|||||||
#lang info
|
#lang info
|
||||||
|
|
||||||
(define pkg-authors '(hnmdijkema))
|
(define pkg-authors '(hnmdijkema))
|
||||||
(define version "0.20")
|
(define version "0.2.1")
|
||||||
(define license 'Apache-2.0)
|
(define license 'Apache-2.0)
|
||||||
;(define collection "simple-ini")
|
;(define collection "simple-ini")
|
||||||
(define pkg-desc "A Simple .ini file reader/writer for racket")
|
(define pkg-desc "A Simple .ini file reader/writer for racket")
|
||||||
|
|||||||
2
roos.rkt
2
roos.rkt
@@ -21,7 +21,7 @@
|
|||||||
(fail #f)
|
(fail #f)
|
||||||
|
|
||||||
((file) file*)
|
((file) file*)
|
||||||
((file! f) (i-set! file* f) (-> this reload))
|
((file! f) (i-set! file* f) (%-> this reload))
|
||||||
|
|
||||||
((reload) (i-set! content
|
((reload) (i-set! content
|
||||||
(if (not (eq? file* #f))
|
(if (not (eq? file* #f))
|
||||||
|
|||||||
@@ -77,7 +77,7 @@
|
|||||||
Provides a @seclink["top" #:doc '(lib "roos/scribblings/roos.scrbl")]{Roos class} that gives object-oriented access to INI files using the underlying @racket[file->ini] parser system. The class offers methods to load, query, and update INI files using familiar object-style interactions.}
|
Provides a @seclink["top" #:doc '(lib "roos/scribblings/roos.scrbl")]{Roos class} that gives object-oriented access to INI files using the underlying @racket[file->ini] parser system. The class offers methods to load, query, and update INI files using familiar object-style interactions.}
|
||||||
|
|
||||||
|
|
||||||
@defproc[(-! [ini roos-class*] [or/c path-string?]) roos-object*]{
|
@defproc[(%-! [ini roos-class*] [or/c path-string?]) roos-object*]{
|
||||||
Creates an @racket[ini] object. If a @racket[file] path is provided and the file exists, it is loaded immediately. Otherwise, an empty INI structure is created.
|
Creates an @racket[ini] object. If a @racket[file] path is provided and the file exists, it is loaded immediately. Otherwise, an empty INI structure is created.
|
||||||
|
|
||||||
If no file is provided, the object operates in-memory only. Subsequent @racket[set!] operations will raise an error unless a file is later specified with @racket[(file!)].
|
If no file is provided, the object operates in-memory only. Subsequent @racket[set!] operations will raise an error unless a file is later specified with @racket[(file!)].
|
||||||
|
|||||||
Reference in New Issue
Block a user