class YARP::LexCompat::Heredoc::PlainHeredoc
Heredocs that are no dash or tilde heredocs are just a list of tokens. We need to keep them around so that we can insert them in the correct order back into the token stream and set the state of the last token to the state that the heredoc was opened in.
Attributes
tokens[R]
Public Class Methods
new()
click to toggle source
# File yarp/lex_compat.rb, line 274 def initialize @tokens = [] end
Public Instance Methods
<<(token)
click to toggle source
# File yarp/lex_compat.rb, line 278 def <<(token) tokens << token end
to_a()
click to toggle source
# File yarp/lex_compat.rb, line 282 def to_a tokens end