class Prism::LexCompat::Heredoc::DashHeredoc
Dash heredocs are a little more complicated. They are a list of tokens that need to be split on β\\nβ to mimic Ripperβs behavior. We also need to keep track of the state that the heredoc was opened in.
Attributes
split
[R]
bool
:nodoc:
tokens
[R]
Array[lex_compat_token]
Public Class Methods
(bool split) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/lex_compat.rbs, line 93
def initialize: (bool split) -> void
: (bool split) -> void
Public Instance Methods
(lex_compat_token token) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/lex_compat.rbs, line 96
def <<: (lex_compat_token token) -> void
: (lex_compat_token token) -> void