A new instance of Literal.
#match, #set_block
Returns a new instance of Literal.
144 145 146 147
# File 'lib/abnf.rb', line 144 def initialize(string, &blk) @choices = string.each_char.map { |c| Char.new(c) } @blk = blk end