Class: ExampleModule
- Inherits:
-
Mosaic::Module
- Object
- Mosaic::Module
- ExampleModule
- Defined in:
- lib/blank_app/app/modules/example.rb
Overview
Example Mosaic Module
Would respond to /example with the contents of views/index.html
Instance Attribute Summary
Attributes inherited from Mosaic::Module
Instance Method Summary collapse
-
#handle ⇒ Object
Is called by Mosaic when ever a request is made.
Methods inherited from Mosaic::Module
#initialize, provide_middleware, respond_to
Constructor Details
This class inherits a constructor from Mosaic::Module
Instance Method Details
#handle ⇒ Object
Is called by Mosaic when ever a request is made.
8 9 10 |
# File 'lib/blank_app/app/modules/example.rb', line 8 def handle @response.content = :'index.html' end |