class AdLint::Cpp::Group
Attributes
group_parts[R]
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/adlint/cpp/syntax.rb, line 103 def initialize super @group_parts = [] end
Public Instance Methods
inspect(indent = 0)
click to toggle source
# File lib/adlint/cpp/syntax.rb, line 119 def inspect(indent = 0) ([" " * indent + short_class_name] + @group_parts.map { |child| child.inspect(indent + 1) }).join("\n") end
location()
click to toggle source
# File lib/adlint/cpp/syntax.rb, line 115 def location @group_parts.first.location end
push(group_part)
click to toggle source
# File lib/adlint/cpp/syntax.rb, line 110 def push(group_part) @group_parts.push(group_part) self end