Class: Rack::RacksonFive
- Inherits:
-
Struct
- Object
- Struct
- Rack::RacksonFive
- Defined in:
- lib/rack/rackson-five.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app
2 3 4 |
# File 'lib/rack/rackson-five.rb', line 2 def app @app end |
#options ⇒ Object
Returns the value of attribute options
2 3 4 |
# File 'lib/rack/rackson-five.rb', line 2 def @options end |
Instance Method Details
#call(env) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/rack/rackson-five.rb', line 3 def call(env) request = Rack::Request.new(env) if request.path_info =~ /^\/rackson-five\/(.+)$/ rackson_five_request($1) else jacksonify(env) end end |