Sha256: a825da4108c6bd57bf97a864b5b09b6099def20498f8910b306e776a90cc1598

Contents?: true

Size: 453 Bytes

Versions: 1

Compression:

Stored size: 453 Bytes

Contents

(chapter-start 'nydp/warnings "Store, display, and manage warnings")

(def warnings/clear nil
  ; clear all stored warnings
  (assign warnings/list nil))

(warnings/clear)

;; apply f to each stored warning. For example, (warnings p) to print warnings to console
(def warnings (f)
  (mapply f warnings))

(def warnings/new (kind . info)
  ; store a warning for future retrieval or display
  (assign warnings/list (cons (cons kind info) warnings/list)))

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nydp-0.6.0 lib/lisp/core-025-warnings.nydp