Sha256: 01eddb7b58a20485f4c493f8d9961f9f43846ee525eef0a36a087bdcd6860501
Contents?: true
Size: 526 Bytes
Versions: 10
Compression:
Stored size: 526 Bytes
Contents
# frozen_string_literal: true module Leftovers module Matchers class NodeHasPositionalArgumentWithValue # :nocov: using ::Leftovers::Backports::SetCaseEq if defined?(::Leftovers::Backports::SetCaseEq) # :nocov: def initialize(position, matcher) @position = position @matcher = matcher freeze end def ===(node) value_node = node.positional_arguments[@position] @matcher === value_node if value_node end freeze end end end
Version data entries
10 entries across 10 versions & 1 rubygems