Class: Locomotive::Steam::Server::Middleware

Inherits:
Object
  • Object
show all
Defined in:
lib/locomotive/steam/server/middleware.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#appObject

Returns the value of attribute app.



6
7
8
# File 'lib/locomotive/steam/server/middleware.rb', line 6

def app
  @app
end

#content_entryObject

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_assignsObject

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_pointObject

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

#pageObject

Returns the value of attribute page.



8
9
10
# File 'lib/locomotive/steam/server/middleware.rb', line 8

def page
  @page
end

#pathObject

Returns the value of attribute path.



6
7
8
# File 'lib/locomotive/steam/server/middleware.rb', line 6

def path
  @path
end

#requestObject

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