class AdLint::Cpp::ErrorLine

Attributes

pp_tokens[R]

Public Class Methods

new(keyword, pp_toks) click to toggle source
Calls superclass method AdLint::Cpp::ControlLine::new
# File lib/adlint/cpp/syntax.rb, line 444
def initialize(keyword, pp_toks)
  super(keyword)
  @pp_tokens = pp_toks
end

Public Instance Methods

inspect(indent = 0) click to toggle source
# File lib/adlint/cpp/syntax.rb, line 451
def inspect(indent = 0)
  " " * indent +
    "#{short_class_name} (#{@pp_tokens ? @pp_tokens.inspect : ""})"
end