Class: Lotus::Container
- Inherits:
-
Object
- Object
- Lotus::Container
- Defined in:
- lib/lotus/container.rb
Overview
Defined Under Namespace
Classes: Router
Instance Attribute Summary collapse
- #routes ⇒ Object readonly
Class Method Summary collapse
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize ⇒ Container
constructor
A new instance of Container.
Constructor Details
Instance Attribute Details
#routes ⇒ Object (readonly)
19 20 21 |
# File 'lib/lotus/container.rb', line 19 def routes @routes end |
Class Method Details
.configure(options = {}, &blk) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/lotus/container.rb', line 21 def self.configure( = {}, &blk) Mutex.new.synchronize do @@options = @@configuration = blk end end |
Instance Method Details
#call(env) ⇒ Object
35 36 37 |
# File 'lib/lotus/container.rb', line 35 def call(env) @routes.call(env) end |