Class: ABNF::Compiler::Grammar::Rulename
- Inherits:
-
Object
- Object
- ABNF::Compiler::Grammar::Rulename
- Includes:
- Compiler
- Defined in:
- lib/abnf/compiler/grammar/rulename.rb
Constant Summary collapse
- PATTERN =
%r{\A(?<string>[[:alpha:]][-[:alpha:][:digit:]]*)}n
Instance Attribute Summary
Attributes included from Compiler
Instance Method Summary collapse
Methods included from Compiler
Instance Method Details
#call ⇒ Object
9 10 11 |
# File 'lib/abnf/compiler/grammar/rulename.rb', line 9 def call ABNF::Compiler::Rule::Reference.new match_data['string'] end |