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.



81
82
83
84
# File 'lib/webkit_remote/client/console_events.rb', line 81

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

Class Method Details

.can_reach?(client) ⇒ Boolean

Returns:

  • (Boolean)


87
88
89
# File 'lib/webkit_remote/client/console_events.rb', line 87

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