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

Version Path
rubocop-0.71.0 lib/rubocop/cop/mixin/integer_node.rb
rubocop-0.70.0 lib/rubocop/cop/mixin/integer_node.rb
rubocop-0.69.0 lib/rubocop/cop/mixin/integer_node.rb
rubocop-0.68.1 lib/rubocop/cop/mixin/integer_node.rb
rubocop-0.68.0 lib/rubocop/cop/mixin/integer_node.rb
rubocop-0.67.2 lib/rubocop/cop/mixin/integer_node.rb
rubocop-0.67.1 lib/rubocop/cop/mixin/integer_node.rb
rubocop-0.67.0 lib/rubocop/cop/mixin/integer_node.rb
rubocop-0.66.0 lib/rubocop/cop/mixin/integer_node.rb