# frozen_string_literal: true module Wayfarer module Routing module Matchers class Custom include Stringify attr_reader :delegate def initialize(delegate = proc) @delegate = delegate end def match(url) !!delegate.call(url) end def params(_) {} end end end end end