module Aladdin::Support::OneOfPattern
Sinatra route matcher that matches mutltiple paths given in an array.
Public Instance Methods
one_of(routes)
click to toggle source
@example
get one_of(%w(x y z)) do puts 'Hello!' end
# File lib/aladdin/support/multiroute.rb, line 32 def one_of(routes) OneOfMatcher.new routes end