Class: Rugo::RugoBase
- Inherits:
-
Object
- Object
- Rugo::RugoBase
- Defined in:
- lib/rugo.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize ⇒ RugoBase
constructor
A new instance of RugoBase.
- #routes ⇒ Object
Constructor Details
Instance Method Details
#call(env) ⇒ Object
46 47 48 |
# File 'lib/rugo.rb', line 46 def call(env) @router.execute(env) end |
#routes ⇒ Object
50 51 52 53 54 |
# File 'lib/rugo.rb', line 50 def routes [ {method: 'GET', pattern: '/', handler: HelloHandler}, ] end |