9 ms·
Not exactly the same, since there's no UInt8 in Ruby. require 'sinatra' get %r{/hello/([^/]+)/(\d+)} do |name, age| "Hello, #{age} year old named
by johnlinvc 7y ago
Not exactly the same, since there's no UInt8 in Ruby.
require 'sinatra'
get %r{/hello/([^/]+)/(\d+)} do |name, age|
"Hello, #{age} year old named #{name}!"
end