method

skip

v1_9_3_392 - Show latest stable - Class: RDoc::Markup::Parser
skip(token_type, error = true)
public

Skips the next token if its type is token_type.

Optionally raises an error if the next token is not of the expected type.