Module: Grape::Parser::Base
- Defined in:
- lib/grape/parser/base.rb
Constant Summary collapse
Class Method Summary collapse
Class Method Details
.parser_for(api_format, options = {}) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/grape/parser/base.rb', line 16 def parser_for(api_format, = {}) spec = parsers()[api_format] case spec when nil nil when Symbol method(spec) else spec end end |
.parsers(options) ⇒ Object
12 13 14 |
# File 'lib/grape/parser/base.rb', line 12 def parsers() PARSERS.merge([:parsers] || {}) end |