Sha256: 6738abbc50cb635647bf3d83ce73f49996197be789b19b453f3f0c0ce3f21022
Contents?: true
Size: 319 Bytes
Versions: 1
Compression:
Stored size: 319 Bytes
Contents
require 'rlyeh/dispatcher' module Rlyeh module DeepOnes class Closer include Rlyeh::Dispatcher def initialize(app) @app = app end def call(env) dispatch env @app.call env if @app end on :quit do |env| throw :quit end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rlyeh-0.1.1 | lib/rlyeh/deep_ones/closer.rb |