Sha256: baf0347f533f13b1f9206cfcf059b90568c5a4f5947e2ab2cc20fc086aeea73d
Contents?: true
Size: 813 Bytes
Versions: 2
Compression:
Stored size: 813 Bytes
Contents
module Ichabod module Delegate class Load attr_reader :runtime def initialize(runtime) @runtime = runtime end def webView(sender, didFinishLoadForFrame:frame) # Page loaded... end def webView(webView, didClearWindowObject:windowScriptObject, forFrame:frame) windowScriptObject.setValue(ScriptObject::Ruby.new(runtime), forKey:"Ruby") windowScriptObject.setValue(ScriptObject::Ichabod.new(runtime), forKey:"Ichabod") end def webView(view, didFailLoadWithError:error, forFrame:frame) raise "Failed: #{error.localizedDescription}" end def webView(view, didFailProvisionalLoadWithError:error, forFrame:frame) raise "Failed: #{error.localizedDescription}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ichabod-0.0.2 | lib/ichabod/delegate/load.rb |
ichabod-0.0.1 | lib/ichabod/delegate/load.rb |