Sha256: 0218c4524f0b1af9844178aaf07d17e0e02ad69aedd4c7852968a550d0c95c4c
Contents?: true
Size: 315 Bytes
Versions: 11
Compression:
Stored size: 315 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop # Common functionality for checking hash nodes. module HashNode def any_pairs_on_the_same_line?(node) node.children.butfirst.any? do |pair| !Util.begins_its_line?(pair.loc.expression) end end end end end
Version data entries
11 entries across 11 versions & 2 rubygems