Sha256: 60faa9ef79d3a973875403f6ff05a9ca4a22aad69055f3037714f5f5daf8ec7a
Contents?: true
Size: 248 Bytes
Versions: 20
Compression:
Stored size: 248 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop # Common functionality for checking integer nodes. module IntegerNode def integer_part(node) node.source.sub(/^[+-]/, '').split('.').first end end end end
Version data entries
20 entries across 20 versions & 2 rubygems