Module: SugarCube::WebView
- Included in:
- WKWebView
- Defined in:
- lib/cocoa/sugarcube-webkit/wkwebview.rb
Overview
Evaluating javascript from string
Instance Method Summary collapse
Instance Method Details
#eval_js(str, &block) ⇒ Object
5 6 7 |
# File 'lib/cocoa/sugarcube-webkit/wkwebview.rb', line 5 def eval_js(str, &block) self.evaluateJavaScript(str, completionHandler:->(id, error){ block.call(id, error) }) end |