Module: Wayfarer::Middleware::Base
- Extended by:
- ActiveSupport::Concern
- Included in:
- BatchCompletion, ContentType, Dedup, Dispatch, Normalize, Redis, Router, Stage, UriParser, UserAgent
- Defined in:
- lib/wayfarer/middleware/base.rb
Constant Summary collapse
- API_MODULE =
:API
Instance Method Summary collapse
Instance Method Details
#api ⇒ Object
10 11 12 13 14 |
# File 'lib/wayfarer/middleware/base.rb', line 10 def api return const_get(API_MODULE) if const_defined?(API_MODULE) Module.new end |
#lazy ⇒ Object
16 17 18 |
# File 'lib/wayfarer/middleware/base.rb', line 16 def lazy Wayfarer::Middleware::Lazy.new(self) end |