class AdLint::Cpp::IfStatement
Attributes
expression[RW]
group[R]
Public Class Methods
new(keyword, expr, group)
click to toggle source
Calls superclass method
AdLint::Cpp::IfGroup::new
# File lib/adlint/cpp/syntax.rb, line 167 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 176 def inspect(indent = 0) [" " * indent + "#{short_class_name}", @expression.inspect(indent + 1), @group ? @group.inspect(indent + 1) : nil].compact.join("\n") end