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

Inherits:
Ruby::Legacy::Base
  • Object
show all
Includes:
AbstractRouteHandler
Defined in:
lib/yard/sinatra.rb

Instance Method Summary collapse

Methods included from AbstractRouteHandler

error_handlers, #process, #register_error_handler, #register_route, routes

Instance Method Details

#http_pathObject



126
127
128
# File 'lib/yard/sinatra.rb', line 126

def http_path
  statement.tokens[2].text
end

#http_verbObject



122
123
124
# File 'lib/yard/sinatra.rb', line 122

def http_verb
  statement.tokens.first.text.upcase
end