lib/hanami/routing/parsing/parser.rb in hanami-router-1.0.0.beta2 vs lib/hanami/routing/parsing/parser.rb in hanami-router-1.0.0.beta3

- old
+ new

@@ -12,17 +12,20 @@ class BodyParsingError < Hanami::Routing::Error end # @since 0.2.0 class UnknownParserError < Hanami::Routing::Error + # @since 0.2.0 + # @api private def initialize(parser) super("Unknown Parser: `#{ parser }'") end end # @since 0.2.0 class Parser # @since 0.2.0 + # @api private def self.for(parser) case parser when String, Symbol require_parser(parser) else