Class: Net::HTTP::Server::Parser
- Inherits:
-
Parslet::Parser
- Object
- Parslet::Parser
- Net::HTTP::Server::Parser
- Defined in:
- lib/net/http/server/parser.rb
Overview
Instance Method Summary collapse
-
#charset(*chars) ⇒ Object
protected
Creates a matcher for the given characters.
Instance Method Details
#charset(*chars) ⇒ Object (protected)
Creates a matcher for the given characters.
144 145 146 |
# File 'lib/net/http/server/parser.rb', line 144 def charset(*chars) match[chars.map { |c| Regexp.escape(c) }.join] end |