Method: Sinatra::Request::AcceptEntry#priority
- Defined in:
- lib/sinatra/base.rb
permalink #priority ⇒ Object
[View source]
115 116 117 118 |
# File 'lib/sinatra/base.rb', line 115 def priority # We sort in descending order; better matches should be higher. [@q, -@type.count('*'), @params.size] end |