class AdLint::Cpp::ElifStatement
Attributes
expression[RW]
group[R]
Public Class Methods
new(keyword, expr, group)
click to toggle source
Calls superclass method
AdLint::Cpp::ElifGroup::new
# File lib/adlint/cpp/syntax.rb, line 247 def initialize(keyword, expr, group) super(keyword) @expression = expr @group = group end
Public Instance Methods
inspect(indent = 0)
click to toggle source
# File lib/adlint/cpp/syntax.rb, line 256 def inspect(indent = 0) [" " * indent + "#{short_class_name} #{@expression.inspect}", @group ? @group.inspect(indent + 1) : nil].compact.join("\n") end