Class: ExampleModule

Inherits:
Mosaic::Module show all
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

#params, #request, #response

Instance Method Summary collapse

Methods inherited from Mosaic::Module

#initialize, provide_middleware, respond_to

Constructor Details

This class inherits a constructor from Mosaic::Module

Instance Method Details

#handleObject

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