This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9) is shown here.
get_tk_until(*tokens)
public
Reads and returns all tokens up to one of tokens. Leaves the
matched token in the token list.
# File lib/rdoc/parser/ruby_tools.rb, line 67
def get_tk_until(*tokens)
read = []
loop do
tk = get_tk
case tk
when *tokens then
unget_tk tk
break
end
read << tk
end
read
end