Sha256: 51ef35b14776f25f5cbc9d384783a8326405c6a295ac68bc3da270522cfef12c
Contents?: true
Size: 333 Bytes
Versions: 14
Compression:
Stored size: 333 Bytes
Contents
# encoding: utf-8 # 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
14 entries across 14 versions & 2 rubygems