Module: ActionCable::Connection::Callbacks::ClassMethods

Defined in:
lib/action_cable/connection/callbacks.rb

Instance Method Summary collapse

Instance Method Details

#after_command(*methods, &block) ⇒ Object



41
42
43
# File 'lib/action_cable/connection/callbacks.rb', line 41

def after_command(*methods, &block)
  set_callback(:command, :after, *methods, &block)
end

#around_command(*methods, &block) ⇒ Object



45
46
47
# File 'lib/action_cable/connection/callbacks.rb', line 45

def around_command(*methods, &block)
  set_callback(:command, :around, *methods, &block)
end

#before_command(*methods, &block) ⇒ Object



37
38
39
# File 'lib/action_cable/connection/callbacks.rb', line 37

def before_command(*methods, &block)
  set_callback(:command, :before, *methods, &block)
end