class Leftovers::Matchers::Any
Attributes
matchers[R]
:nocov:
Public Class Methods
new(matchers)
click to toggle source
# File lib/leftovers/matchers/any.rb, line 12 def initialize(matchers) @matchers = matchers freeze end
Public Instance Methods
===(value)
click to toggle source
# File lib/leftovers/matchers/any.rb, line 18 def ===(value) @matchers.any? do |matcher| matcher === value end end