class AdLint::Cpp::DefinedExpression
Attributes
identifier[R]
Public Class Methods
new(val, op, id)
click to toggle source
Calls superclass method
AdLint::Cpp::UnaryExpression::new
# File lib/adlint/cpp/syntax.rb, line 819 def initialize(val, op, id) super(val, op) @identifier = id end
Public Instance Methods
inspect(indent = 0)
click to toggle source
# File lib/adlint/cpp/syntax.rb, line 830 def inspect(indent = 0) " " * indent + "#{short_class_name} " + "(#{operator.inspect} #{@identifier.inspect}" end
to_s()
click to toggle source
# File lib/adlint/cpp/syntax.rb, line 826 def to_s "#{operator.value}(#{@identifier.value})" end