Module: RuboCop::Cop::IntegerNode
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/rubocop/cop/mixin/integer_node.rb |
Overview
Common functionality for checking integer nodes.
Instance Method Summary
- #integer_part(node) private
Instance Method Details
#integer_part(node) (private)
[ GitHub ]# File 'lib/rubocop/cop/mixin/integer_node.rb', line 9
def integer_part(node) node.source.sub(/^[+-]/, '').split(/[eE.]/, 2).first end