Module: Roda::RodaPlugins::Json::InstanceMethods
- Defined in:
- lib/roda/plugins/json.rb
Instance Method Summary collapse
-
#handle_json_block_result(result) ⇒ Object
Handle a result for one of the registered JSON result classes by converting the result to JSON.
Instance Method Details
#handle_json_block_result(result) ⇒ Object
Handle a result for one of the registered JSON result classes by converting the result to JSON.
91 92 93 94 |
# File 'lib/roda/plugins/json.rb', line 91 def handle_json_block_result(result) @_response[RodaResponseHeaders::CONTENT_TYPE] ||= opts[:json_result_content_type] @_request.send(:convert_to_json, result) end |