class AdLint::Cc1::ComparisonOperator
Public Instance Methods
for_commutation()
click to toggle source
# File lib/adlint/cc1/operator.rb, line 82 def for_commutation case self when Operator::LT then Operator::GT when Operator::GT then Operator::LT when Operator::LE then Operator::GE when Operator::GE then Operator::LE else self end end
for_complement()
click to toggle source
# File lib/adlint/cc1/operator.rb, line 70 def for_complement case self when Operator::EQ then Operator::NE when Operator::NE then Operator::EQ when Operator::LT then Operator::GE when Operator::GT then Operator::LE when Operator::LE then Operator::GT when Operator::GE then Operator::LT else self end end