Public Instance methods
handle_json_block_result(result)
Handle a result for one of the registered JSON result classes by converting the result to JSON.
[show source]
# File lib/roda/plugins/json.rb 93 def handle_json_block_result(result) 94 @_response[RodaResponseHeaders::CONTENT_TYPE] ||= opts[:json_result_content_type] 95 @_request.send(:convert_to_json, result) 96 end