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 96 def handle_json_block_result(result) 97 @_response[RodaResponseHeaders::CONTENT_TYPE] ||= self.class.json_result_content_type 98 @_request.send(:convert_to_json, result) 99 end