Method: HTTP::Security::Parsers::Parser.directive_rule
- Defined in:
- lib/http/security/parsers/parser.rb
.directive_rule(name, string = nil) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/http/security/parsers/parser.rb', line 16 def self.directive_rule(name,string=nil) string ||= name.to_s.tr('_','-') rule(name) do stri(string).as(:key) end end |