class AdLint::Cpp::ElifGroups

Attributes

elif_statements[R]

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/adlint/cpp/syntax.rb, line 216
def initialize
  super
  @elif_statements = []
end

Public Instance Methods

inspect(indent = 0) click to toggle source
# File lib/adlint/cpp/syntax.rb, line 228
def inspect(indent = 0)
  ([" " * indent + short_class_name] +
   @elif_statements.map { |child| child.inspect(indent + 1) }).join("\n")
end
push(elif_stmt) click to toggle source
# File lib/adlint/cpp/syntax.rb, line 223
def push(elif_stmt)
  @elif_statements.push(elif_stmt)
  self
end