Module: ABNF::Parser::Compiler::PatternMethod

Defined in:
lib/abnf/parser/compiler.rb

Instance Method Summary collapse

Instance Method Details

#patternObject



35
36
37
38
39
40
41
# File 'lib/abnf/parser/compiler.rb', line 35

def pattern
  if const_defined? :PATTERN
    const_get :PATTERN
  else
    @null_pattern ||= %r{}
  end
end