Sha256: 22081d4d6718f09d29ba257ce0b870e46249c5524a2ed7389c65b01792c07f9c

Contents?: true

Size: 214 Bytes

Versions: 1

Compression:

Stored size: 214 Bytes

Contents

module SugarCube
  # Evaluating javascript from string
  module WebView

    def eval_js(str, &block)
      self.evaluateJavaScript(str, completionHandler:->(id, error){ block.call(id, error) })
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sugarcube-4.0.0 lib/cocoa/sugarcube-webkit/wkwebview.rb