Sha256: b3ad0ea1662e1a36c5e63c7ceb618dea4935f385da49b5614b91d30b6209ad2a
Contents?: true
Size: 400 Bytes
Versions: 3
Compression:
Stored size: 400 Bytes
Contents
# frozen_string_literal: true module Leftovers module Matchers class NodeHasPositionalArgumentWithValue 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
3 entries across 3 versions & 1 rubygems