Module: RuboCop::AST::NumericNode
Overview
Common functionality for primitive numeric nodes: ‘int`, `float`, …
Instance Method Summary collapse
-
#sign? ⇒ Boolean
Checks whether this is literal has a sign.
Instance Method Details
#sign? ⇒ Boolean
Checks whether this is literal has a sign.
17 18 19 |
# File 'lib/rubocop/ast/node/mixin/numeric_node.rb', line 17 def sign? source.match(SIGN_REGEX) end |