Method: Roda::RodaPlugins::PathMatchers::RequestMethods#match_extension

Defined in:
lib/roda/plugins/path_matchers.rb

#match_extension(ext) ⇒ Object

Match when the current segment ends with the given extension. request path end with the extension.



36
37
38
# File 'lib/roda/plugins/path_matchers.rb', line 36

def match_extension(ext)
  match_suffix(".#{ext}")
end