module RuboCop::AST::NumericNode

def sign?

Returns:
  • (Boolean) - whether this literal has a sign.
def sign?
  source.match(SIGN_REGEX)
end