Sha256: 9a46a7305e3179477ca54e8e06ee37eb937f78aff5de2573fca76b2eaaca7b57

Contents?: true

Size: 346 Bytes

Versions: 3

Compression:

Stored size: 346 Bytes

Contents

# frozen_string_literal: true

module Wayfarer
  module Routing
    module Matchers
      Host = Struct.new(:host) do
        # rubocop:disable Style/CaseEquality
        def match(url)
          host === url.host
        end
        # rubocop:enable Style/CaseEquality

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wayfarer-0.4.3 lib/wayfarer/routing/matchers/host.rb
wayfarer-0.4.2 lib/wayfarer/routing/matchers/host.rb
wayfarer-0.4.1 lib/wayfarer/routing/matchers/host.rb