Class: BigBand::Integration::YARD::Handlers::Sinatra::RouteHandler

Inherits:
YARD::Handlers::Ruby::Base
  • Object
show all
Includes:
AbstractRouteHandler
Defined in:
lib/big_band/integration/yard.rb

Overview

Route handler for YARD’s source parser.

Instance Method Summary collapse

Methods included from AbstractRouteHandler

#process, #register_route, routes

Instance Method Details

#http_pathObject



79
80
81
# File 'lib/big_band/integration/yard.rb', line 79

def http_path
  statement.parameters.first.source
end

#http_verbObject



76
77
78
# File 'lib/big_band/integration/yard.rb', line 76

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