# File lib/grape/formatter/base.rb, line 17 def formatter_for(api_format, options = {}) spec = formatters(options)[api_format] case spec when nil lambda { |obj, env| obj } when Symbol method(spec) else spec end end
# File lib/grape/formatter/base.rb, line 13 def formatters(options) FORMATTERS.merge(options[:formatters] || {}) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.