Sha256: 23e86d7816f5e47bc6799299aa5edddb6f903ba952808e17a4cf0ec87720359a
Contents?: true
Size: 422 Bytes
Versions: 4
Compression:
Stored size: 422 Bytes
Contents
# frozen_string_literal: true module Leftovers module Matchers class NodeHasPositionalArgument # :nocov: using ::Leftovers::Backports::SetCaseEq if defined?(::Leftovers::Backports::SetCaseEq) # :nocov: def initialize(position) @position = position freeze end def ===(node) node.positional_arguments[@position] end freeze end end end
Version data entries
4 entries across 4 versions & 1 rubygems