Class: Mosaic::Modules::Info
- Inherits:
-
Mosaic::Module
- Object
- Mosaic::Module
- Mosaic::Modules::Info
- Defined in:
- lib/mosaic/modules/info.rb
Overview
Info page for Mosaic
Instance Attribute Summary
Attributes inherited from Mosaic::Module
Instance Method Summary collapse
-
#handle ⇒ Object
Returns the contained view for the page.
-
#info ⇒ Object
A hash of info used by the info page.
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
Returns the contained view for the page
8 9 10 11 |
# File 'lib/mosaic/modules/info.rb', line 8 def handle @response.layout = contained_view("info/layout.html.erb") @response.content = contained_view("info/index.html.erb") end |
#info ⇒ Object
A hash of info used by the info page
14 15 16 17 18 |
# File 'lib/mosaic/modules/info.rb', line 14 def info { root: File.("../../../../", __FILE__) } end |