Sha256: 2004fa4645b5269965b5297e5b040b49cc314bc7c420155dfdc2462bcc2760ac

Contents?: true

Size: 277 Bytes

Versions: 7

Compression:

Stored size: 277 Bytes

Contents

# frozen_string_literal: true

module Wayfarer
  module Routing
    module Matchers
      URL = Struct.new(:url) do
        def match(url)
          url == Addressable::URI.parse(self.url)
        end

        def params(_)
          {}
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wayfarer-0.4.7 lib/wayfarer/routing/matchers/url.rb
wayfarer-0.4.6 lib/wayfarer/routing/matchers/url.rb
wayfarer-0.4.5 lib/wayfarer/routing/matchers/url.rb
wayfarer-0.4.4 lib/wayfarer/routing/matchers/url.rb
wayfarer-0.4.3 lib/wayfarer/routing/matchers/url.rb
wayfarer-0.4.2 lib/wayfarer/routing/matchers/url.rb
wayfarer-0.4.1 lib/wayfarer/routing/matchers/url.rb