Sha256: 3f8ca2b952cda58e7f96585ff8137c9eacde36b5796879ceed83eacd4edd0f17
Contents?: true
Size: 496 Bytes
Versions: 3
Compression:
Stored size: 496 Bytes
Contents
# frozen_string_literal: true module Hanami class Router # HTTP Redirect # # @since 2.0.0 # @api private class Redirect # @since 2.0.0 # @api private attr_reader :destination # @since 2.0.0 # @api private def initialize(destination, endpoint) @destination = destination @endpoint = endpoint end # @since 2.0.0 # @api private def call(env) @endpoint.call(env) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hanami-router-2.0.0.alpha4 | lib/hanami/router/redirect.rb |
hanami-router-2.0.0.alpha3 | lib/hanami/router/redirect.rb |
hanami-router-2.0.0.alpha2 | lib/hanami/router/redirect.rb |