Class: WebkitRemote::Event::ConsoleCleared

Inherits:
WebkitRemote::Event show all
Defined in:
lib/webkit_remote/client/console_events.rb

Overview

Emitted when the console is cleared.

Instance Attribute Summary

Attributes inherited from WebkitRemote::Event

#domain, #name, #raw_data

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from WebkitRemote::Event

can_receive?, class_for, for, #matches?, register, register_class

Constructor Details

#initialize(rpc_event, client) ⇒ ConsoleCleared

Returns a new instance of ConsoleCleared.



56
57
58
59
# File 'lib/webkit_remote/client/console_events.rb', line 56

def initialize(rpc_event, client)
  super
  client.console_cleared
end

Class Method Details

.can_reach?(client) ⇒ Boolean

Returns:

  • (Boolean)


62
63
64
# File 'lib/webkit_remote/client/console_events.rb', line 62

def self.can_reach?(client)
  client.console_events
end