Class: Pakunok::HttpContext

Inherits:
Object
  • Object
show all
Includes:
Sprockets::Helpers::RailsHelper
Defined in:
lib/pakunok/pakunok.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#requestObject

Returns the value of attribute request.



57
58
59
# File 'lib/pakunok/pakunok.rb', line 57

def request
  @request
end