Class: V8::Portal::Proxies::ClearJSProxy
- Defined in:
- lib/v8/portal/proxies.rb
Instance Method Summary collapse
- #call(proxy, parameter) ⇒ Object
-
#initialize(rb2js, js2rb) ⇒ ClearJSProxy
constructor
A new instance of ClearJSProxy.
Constructor Details
#initialize(rb2js, js2rb) ⇒ ClearJSProxy
Returns a new instance of ClearJSProxy.
108 109 110 |
# File 'lib/v8/portal/proxies.rb', line 108 def initialize(rb2js, js2rb) @rb2js, @js2rb = rb2js, js2rb end |
Instance Method Details
#call(proxy, parameter) ⇒ Object
112 113 114 115 116 |
# File 'lib/v8/portal/proxies.rb', line 112 def call(proxy, parameter) rb = @js2rb[proxy] @js2rb.delete(proxy) @rb2js.delete(rb) end |