Class: Lotus::Routing::Parsing::Parser
- Inherits:
-
Object
- Object
- Lotus::Routing::Parsing::Parser
- Defined in:
- lib/lotus/routing/parsing/parser.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.for(parser) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/lotus/routing/parsing/parser.rb', line 14 def self.for(parser) case parser when String, Symbol require_parser(parser) else parser end end |
Instance Method Details
#mime_types ⇒ Object
23 24 25 |
# File 'lib/lotus/routing/parsing/parser.rb', line 23 def mime_types raise NotImplementedError end |
#parse(body) ⇒ Object
27 28 29 |
# File 'lib/lotus/routing/parsing/parser.rb', line 27 def parse(body) Hash.new end |