Class: YARD::Handlers::Sinatra::RouteHandler
- Inherits:
-
Ruby::Base
- Object
- Ruby::Base
- YARD::Handlers::Sinatra::RouteHandler
- Includes:
- AbstractRouteHandler
- Defined in:
- lib/yard/sinatra.rb
Overview
Route handler for YARD’s source parser.
Instance Method Summary collapse
Methods included from AbstractRouteHandler
error_handlers, #process, #register_error_handler, #register_route, routes
Instance Method Details
#http_path ⇒ Object
111 112 113 |
# File 'lib/yard/sinatra.rb', line 111 def http_path statement.parameters.first.source end |
#http_verb ⇒ Object
107 108 109 |
# File 'lib/yard/sinatra.rb', line 107 def http_verb statement.method_name(true).to_s.upcase end |