Class: Rack::Ajax::Parser
- Inherits:
-
Object
- Object
- Rack::Ajax::Parser
- Defined in:
- lib/rack-ajax/parser.rb
Instance Method Summary (collapse)
-
- (Parser) initialize(env)
constructor
Instantiate an ActionController::Request object to make it easier to introspect the headers.
Constructor Details
- (Parser) initialize(env)
Instantiate an ActionController::Request object to make it easier to introspect the headers.
11 12 13 14 |
# File 'lib/rack-ajax/parser.rb', line 11 def initialize(env) @env = env @request = ActionController::Request.new(env) end |