Object
A tokenizer state encapsulates actions that should be performed upon encountering each permissible character for that state.
Define the action (blk) to be performed when encountering any of characters in the token stream.
# File lib/dhaka/tokenizer/tokenizer.rb, line 49 def for_characters(characters, &blk) characters.each do |character| actions[character] = blk end end
Generated with the Darkfish Rdoc Generator 2.