class Leftovers::Matchers::NodeHasAnyPositionalArgumentWithValue
Public Class Methods
new(matcher)
click to toggle source
:nocov:
# File lib/leftovers/matchers/node_has_any_positional_argument_with_value.rb, line 10 def initialize(matcher) @matcher = matcher freeze end
Public Instance Methods
===(node)
click to toggle source
# File lib/leftovers/matchers/node_has_any_positional_argument_with_value.rb, line 16 def ===(node) node.positional_arguments.any? do |value| @matcher === value end end