Module: Angelo::Mustermann::ClassMethods
- Defined in:
- lib/angelo/mustermann.rb
Instance Method Summary collapse
Instance Method Details
#eventsource(path, &block) ⇒ Object
36 37 38 39 |
# File 'lib/angelo/mustermann.rb', line 36 def eventsource path, &block path = ::Mustermann.new path super path, &block end |
#routes ⇒ Object
41 42 43 44 45 46 47 |
# File 'lib/angelo/mustermann.rb', line 41 def routes @routes ||= {} ROUTABLE.each do |m| @routes[m] ||= RouteMap.new end @routes end |
#websocket(path, &block) ⇒ Object
31 32 33 34 |
# File 'lib/angelo/mustermann.rb', line 31 def websocket path, &block path = ::Mustermann.new path super path, &block end |