module

Webview::WebviewLike

Spec-friendly abstraction over the methods Lune's bridge layer uses against a webview. Webview::Webview includes this naturally because all the methods are first-class on the class; spec fakes implement it manually so callers can be tested without spinning up a real webview (with its C state, message pump, and platform window).

Instance methods

bind_deferred(name : String, &block : String, Array(JSON::Any) -> Nil)
Source
dispatch
Source
eval(js : String)
Source
resolve(seq : String, status : Int32, result : String)
Source