Sha256: dcecdccb2e6319242c8715d164cd64c9c9b4a019254cd82d0467c3ffe13f6141
Contents?: true
Size: 317 Bytes
Versions: 5
Compression:
Stored size: 317 Bytes
Contents
module VersionCake class PathParameterStrategy < ExtractionStrategy def execute(request) version = nil request.path.split('/').find do |part| next unless match = part.match(%r{\Av(?<version>\d+)\z}) version = match[:version] break end version end end end
Version data entries
5 entries across 5 versions & 1 rubygems