Sha256: 36f27385643cd8140561c9d65ca38546dcac3c1e6691fbaf023096aeb20fc399

Contents?: true

Size: 337 Bytes

Versions: 4

Compression:

Stored size: 337 Bytes

Contents

# frozen_string_literal: true

module Wayfarer
  module Routing
    module Result
      # Signals that a URL matched a route.
      # @!attribute [rw] action
      #   @return [Page] the retrieved page.
      Match = Struct.new(:action, :params)

      # Signals that a URL matched no route.
      Mismatch = Class.new
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wayfarer-0.4.3 lib/wayfarer/routing/result.rb
wayfarer-0.4.2 lib/wayfarer/routing/result.rb
wayfarer-0.4.1 lib/wayfarer/routing/result.rb
wayfarer-0.4.0 lib/wayfarer/routing/result.rb