Module: Angelo::Mustermann::ClassMethods

Defined in:
lib/angelo/mustermann.rb

Instance Method Summary collapse

Instance Method Details

#routesObject



36
37
38
39
40
41
42
# File 'lib/angelo/mustermann.rb', line 36

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