Sha256: 00a54bd9e8319789b42f19ed90e8982617f3d294c72c7e22e5dc898096a71a49
Contents?: true
Size: 263 Bytes
Versions: 27
Compression:
Stored size: 263 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('.').first end end end end
Version data entries
27 entries across 25 versions & 3 rubygems