Class: C::Negative

Inherits:
Object
  • Object
show all
Defined in:
lib/csquare.rb

Instance Method Summary collapse

Instance Method Details

#underlying_valueObject



579
580
581
# File 'lib/csquare.rb', line 579

def underlying_value
  self.prefixed_literal? ? -self.expr.underlying_value : self.expr.underlying_value
end