class Faye::WebSocket::API::Event
Constants
- AT_TARGET
- BUBBLING_PHASE
- CAPTURING_PHASE
Attributes
Public Class Methods
Source
# File lib/faye/websocket/api/event.rb, line 51 def Event.create(type, options = {}) TYPES[type].new(type, options) end
Source
# File lib/faye/websocket/api/event.rb, line 11 def initialize(event_type, options) @type = event_type options.each { |key, value| instance_variable_set("@#{ key }", value) } end
Public Instance Methods
Source
# File lib/faye/websocket/api/event.rb, line 16 def init_event(event_type, can_bubble, cancelable) @type = event_type @bubbles = can_bubble @cancelable = cancelable end