module RuboCop::Cop::IntegerNode
Common functionality for checking integer nodes.
Private Instance Methods
Source
# File lib/rubocop/cop/mixin/integer_node.rb, line 9 def integer_part(node) node.source.sub(/^[+-]/, '').split(/[eE.]/, 2).first end