module Roda::RodaPlugins::Json::InstanceMethods

  1. lib/roda/plugins/json.rb

Methods

Public Instance

  1. handle_json_block_result

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
91 def handle_json_block_result(result)
92   @_response[RodaResponseHeaders::CONTENT_TYPE] ||= opts[:json_result_content_type]
93   @_request.send(:convert_to_json, result)
94 end