Sha256: d6a93cf1e765f6ab89d1d9cc92aa883a51b3630c1b6cc8dd8304c6beca654ec6
Contents?: true
Size: 436 Bytes
Versions: 7
Compression:
Stored size: 436 Bytes
Contents
require "cuba/version" require "cuba/ron" module Cuba def self.reset! @app = nil @prototype = nil end def self.app @app ||= Rack::Builder.new end def self.use(middleware, *args, &block) app.use(middleware, *args, &block) end def self.define(&block) app.run Cuba::Ron.new(&block) end def self.prototype @prototype ||= app.to_app end def self.call(env) prototype.call(env) end end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
cuba-2.0.1 | lib/cuba.rb |
cuba-2.0.0 | lib/cuba.rb |
cuba-2.0.0.rc3 | lib/cuba.rb |
cuba-2.0.0.rc2 | lib/cuba.rb |
cuba-2.0.0.rc1 | lib/cuba.rb |
cuba-1.0.0 | lib/cuba.rb |
cuba-0.3.0 | lib/cuba.rb |