Class: Droiuby::Wrappers::Listeners::OnWebConsoleReadyListener
- Defined in:
- lib/droiuby/wrappers/listeners/on_web_console_ready_listener.rb
Instance Method Summary collapse
-
#initialize(execution_bundle, auto_wrap_block) ⇒ OnWebConsoleReadyListener
constructor
A new instance of OnWebConsoleReadyListener.
- #onReady(httpd) ⇒ Object
- #to_native ⇒ Object
Constructor Details
#initialize(execution_bundle, auto_wrap_block) ⇒ OnWebConsoleReadyListener
Returns a new instance of OnWebConsoleReadyListener.
6 7 8 9 |
# File 'lib/droiuby/wrappers/listeners/on_web_console_ready_listener.rb', line 6 def initialize(execution_bundle, auto_wrap_block) @auto_wrap_block = auto_wrap_block @native = Java::com.droiuby.wrappers::OnWebConsoleReadyRubyWrapper.new(execution_bundle, self) end |
Instance Method Details
#onReady(httpd) ⇒ Object
11 12 13 14 15 |
# File 'lib/droiuby/wrappers/listeners/on_web_console_ready_listener.rb', line 11 def onReady(httpd) on_ui_thread { @auto_wrap_block.call(httpd) } end |
#to_native ⇒ Object
17 18 19 |
# File 'lib/droiuby/wrappers/listeners/on_web_console_ready_listener.rb', line 17 def to_native @native end |