class AdLint::Cpp::ElseStatement

Attributes

group[R]

Public Class Methods

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

Public Instance Methods

inspect(indent = 0) click to toggle source
# File lib/adlint/cpp/syntax.rb, line 282
def inspect(indent = 0)
  [" " * indent + short_class_name,
    @group ? @group.inspect(indent + 1) : nil].compact.join("\n")
end