Sha256: 907839169240b82e5542e1cb7db0d987614951b80a429ceac21ea5e2b928bdaf
Contents?: true
Size: 401 Bytes
Versions: 5
Compression:
Stored size: 401 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop # Common code for ordinary arrays with [] that can be written with % # syntax. module ArraySyntax private def bracketed_array_of?(element_type, node) return false unless node.square_brackets? && node.values.size > 1 node.values.all? { |value| value.type == element_type } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems