Class: Locomotive::Steam::Server::Middleware
- Inherits:
-
Object
- Object
- Locomotive::Steam::Server::Middleware
- Defined in:
- lib/locomotive/steam/server/middleware.rb
Direct Known Subclasses
DynamicAssets, EntrySubmission, Favicon, Locale, Logging, Page, Path, Renderer, TemplatizedPage, Timezone
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
-
#content_entry ⇒ Object
Returns the value of attribute content_entry.
-
#liquid_assigns ⇒ Object
Returns the value of attribute liquid_assigns.
-
#mounting_point ⇒ Object
Returns the value of attribute mounting_point.
-
#page ⇒ Object
Returns the value of attribute page.
-
#path ⇒ Object
Returns the value of attribute path.
-
#request ⇒ Object
Returns the value of attribute request.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app = nil) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app = nil) ⇒ Middleware
Returns a new instance of Middleware.
10 11 12 |
# File 'lib/locomotive/steam/server/middleware.rb', line 10 def initialize(app = nil) @app = app end |
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app.
6 7 8 |
# File 'lib/locomotive/steam/server/middleware.rb', line 6 def app @app end |
#content_entry ⇒ Object
Returns the value of attribute content_entry.
8 9 10 |
# File 'lib/locomotive/steam/server/middleware.rb', line 8 def content_entry @content_entry end |
#liquid_assigns ⇒ Object
Returns the value of attribute liquid_assigns.
6 7 8 |
# File 'lib/locomotive/steam/server/middleware.rb', line 6 def liquid_assigns @liquid_assigns end |
#mounting_point ⇒ Object
Returns the value of attribute mounting_point.
8 9 10 |
# File 'lib/locomotive/steam/server/middleware.rb', line 8 def mounting_point @mounting_point end |
#page ⇒ Object
Returns the value of attribute page.
8 9 10 |
# File 'lib/locomotive/steam/server/middleware.rb', line 8 def page @page end |
#path ⇒ Object
Returns the value of attribute path.
6 7 8 |
# File 'lib/locomotive/steam/server/middleware.rb', line 6 def path @path end |
#request ⇒ Object
Returns the value of attribute request.
6 7 8 |
# File 'lib/locomotive/steam/server/middleware.rb', line 6 def request @request end |
Instance Method Details
#call(env) ⇒ Object
14 15 16 |
# File 'lib/locomotive/steam/server/middleware.rb', line 14 def call(env) app.call(env) end |