Sha256: ab26f84eabbcb786aaba90bfaa8eaf80d9aed44bc28088f2c79f8f6baab2b101

Contents?: true

Size: 197 Bytes

Versions: 10

Compression:

Stored size: 197 Bytes

Contents

require 'sitehub/resolver'
class SiteHub
  class NilRoute
    include Resolver
    NOT_FOUND = Rack::Response.new(['page not found'], 404, {})

    def call(_env)
      NOT_FOUND
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sitehub-0.5.0.alpha12 lib/sitehub/nil_route.rb
sitehub-0.5.0.alpha11 lib/sitehub/nil_route.rb
sitehub-0.5.0.alpha10 lib/sitehub/nil_route.rb
sitehub-0.5.0.alpha8 lib/sitehub/nil_route.rb
sitehub-0.5.0.alpha7 lib/sitehub/nil_route.rb
sitehub-0.5.0.alpha6 lib/sitehub/nil_route.rb
sitehub-0.5.0.alpha5 lib/sitehub/nil_route.rb
sitehub-0.5.0.alpha4 lib/sitehub/nil_route.rb
sitehub-0.5.0.alpha3 lib/sitehub/nil_route.rb
sitehub-0.5.0.alpha2 lib/sitehub/nil_route.rb