Sha256: f2ce92e165b26580afc995f6388f2da3472630347a13ff46e1e027961aa71e57

Contents?: true

Size: 267 Bytes

Versions: 1

Compression:

Stored size: 267 Bytes

Contents

require "rackrack/builder"
require "rackrack/stub"

module Rackrack
  class << self
    def stubs
      @stubs ||= {}
    end

    def build_stub(name, app = ->(env) { [ 404, {}, [] ] }, &block)
      Builder.new(name, stub: true, app: app, &block)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rackrack-0.1.1 lib/rackrack.rb