class

Tui::CSS::HotReload

Inherits Reference / Object

Constructors

new(interval : Time::Span = 500.milliseconds)
Source

Instance methods

clear

Clear all watched files

Source
enabled
Source
enabled=(enabled : Bool)
Source
interval
Source
interval=(interval : Time::Span)
Source
on_error
Source
on_error=(on_error : Proc(String, Exception, Nil) | Nil)
Source
on_reload
Source
on_reload=(on_reload : Proc(String, Nil) | Nil)
Source
running?
Source
start

Start watching

Source
stop

Stop watching

Source
unwatch(path : String) : Nil

Unwatch a file

Source
watch(path : String, &callback : Stylesheet -> Nil) : Nil

Watch a CSS file

Source
watch_for_app(path : String, app : App) : Nil

Watch a CSS file and apply to app

Source

Nested types