Sha256: e2a50a8b15d3b799768337cf7e4141b7f78d14d542d1f16987fa1eee68ea80c2
Contents?: true
Size: 503 Bytes
Versions: 8
Compression:
Stored size: 503 Bytes
Contents
# frozen_string_literal: true module Leftovers module Matchers class NodeHasAnyKeywordArgument include ComparableInstance attr_reader :matcher def initialize(matcher) @matcher = matcher freeze end def ===(node) kwargs = node.kwargs kwargs.children.any?(@matcher) if kwargs # rubocop:disable Style/SafeNavigation because there are multiple steps and this should be a configuration option end freeze end end end
Version data entries
8 entries across 8 versions & 1 rubygems