class Faye::WebSocket::API::Event

Constants

AT_TARGET
BUBBLING_PHASE
CAPTURING_PHASE

Attributes

bubbles[R]
cancelable[R]
current_target[RW]
data[RW]
event_phase[RW]
message[RW]
target[RW]
type[R]

Public Class Methods

new(event_type, options = {}) click to toggle source
# File lib/faye/websocket/api/event.rb, line 11
def initialize(event_type, options = {})
  @type = event_type
  metaclass = (class << self ; self ; end)
  options.each do |key, value|
    metaclass.__send__(:define_method, key) { value }
  end
end

Public Instance Methods

init_event(event_type, can_bubble, cancelable) click to toggle source
# File lib/faye/websocket/api/event.rb, line 19
def init_event(event_type, can_bubble, cancelable)
  @type       = event_type
  @bubbles    = can_bubble
  @cancelable = cancelable
end
prevent_default() click to toggle source
# File lib/faye/websocket/api/event.rb, line 28
def prevent_default
end
stop_propagation() click to toggle source
# File lib/faye/websocket/api/event.rb, line 25
def stop_propagation
end