Class: Pakunok::HttpContext
- Inherits:
-
Object
- Object
- Pakunok::HttpContext
- Includes:
- Sprockets::Helpers::RailsHelper
- Defined in:
- lib/pakunok/pakunok.rb
Instance Attribute Summary collapse
-
#request ⇒ Object
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(request) ⇒ HttpContext
constructor
A new instance of HttpContext.
Constructor Details
#initialize(request) ⇒ HttpContext
Returns a new instance of HttpContext.
60 61 62 63 |
# File 'lib/pakunok/pakunok.rb', line 60 def initialize(request) # https://github.com/rails/rails/blob/master/actionpack/lib/sprockets/helpers/rails_helper.rb @request = request end |
Instance Attribute Details
#request ⇒ Object
Returns the value of attribute request.
57 58 59 |
# File 'lib/pakunok/pakunok.rb', line 57 def request @request end |