class Rubocop::ProcessedSource
It also provides a convenient way to access source lines.
and other information such as disabled lines for cops.
ProcessedSource contains objects which are generated by Parser
def [](*args)
def [](*args) lines[*args] end
def initialize(buffer, ast, comments, tokens, diagnostics)
def initialize(buffer, ast, comments, tokens, diagnostics) @buffer = buffer @ast = ast @comments = comments @tokens = tokens @diagnostics = diagnostics end
def lines
def lines @lines ||= @buffer.source.split($RS) end