class ABNF::Parser::Rules::Terminal::String

Public Instance Methods

match?(potential_match) click to toggle source
# File lib/abnf/parser/rules/terminal.rb, line 34
def match? potential_match
  pattern == potential_match
end
octets() click to toggle source
# File lib/abnf/parser/rules/terminal.rb, line 38
def octets
  pattern.bytesize
end