Class: YARD::Handlers::Sinatra::RouteHandler

Inherits:
Ruby::Base
  • Object
show all
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_pathObject



111
112
113
# File 'lib/yard/sinatra.rb', line 111

def http_path
  statement.parameters.first.source
end

#http_verbObject



107
108
109
# File 'lib/yard/sinatra.rb', line 107

def http_verb
  statement.method_name(true).to_s.upcase
end