class

Cl8r::Server::Watcher

Inherits Reference < Object

Lightweight, robust filesystem watcher for cl8r development and live reloading.

Constructors

new(paths : Array(String), poll_interval_ms : Int32 = 1000)
Source

Instance methods

on_change
Source
on_change=(on_change : Proc(String, Nil) | Nil)
Source
running?
Source
scan_and_dispatch

Scans disk and dispatches changes if files have been modified, created, or deleted.

Source
start

Starts the background monitoring loop.

Source
stop

Stops the background monitoring loop.

Source