class Noodles::Websocket::Application
Public Instance Methods
call(env)
click to toggle source
# File lib/noodles/websocket/application.rb, line 8 def call(env) handler = get_handler(env) handler.new.call(env) end
get_handler(env)
click to toggle source
# File lib/noodles/websocket/routing.rb, line 4 def get_handler(env) _, handler, after = env['PATH_INFO'].split('/', 3) handler = handler.capitalize handler += 'Handler' Object.const_get(handler) end