Module: Roda::RodaPlugins::ModuleInclude::ClassMethods
- Defined in:
- lib/roda/plugins/module_include.rb
Instance Method Summary collapse
-
#request_module(mod = nil, &block) ⇒ Object
Include the given module in the request class.
-
#response_module(mod = nil, &block) ⇒ Object
Include the given module in the response class.
Instance Method Details
#request_module(mod = nil, &block) ⇒ Object
39 40 41 |
# File 'lib/roda/plugins/module_include.rb', line 39 def request_module(mod = nil, &block) module_include(:request, mod, &block) end |
#response_module(mod = nil, &block) ⇒ Object
58 59 60 |
# File 'lib/roda/plugins/module_include.rb', line 58 def response_module(mod = nil, &block) module_include(:response, mod, &block) end |