Sha256: 4f45d9c73ad6499efa8fc9434734c5f6c80f0b2b62a6fd4ed908a634672c3101
Contents?: true
Size: 270 Bytes
Versions: 7089
Compression:
Stored size: 270 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop # Common functionality for checking integer nodes. module IntegerNode private def integer_part(node) node.source.sub(/^[+-]/, '').split(/[eE.]/, 2).first end end end end
Version data entries
7,089 entries across 7,052 versions & 48 rubygems