class Leftovers::Matchers::Or

Attributes

lhs[R]

:nocov:

rhs[R]

:nocov:

Public Class Methods

new(lhs, rhs) click to toggle source
# File lib/leftovers/matchers/or.rb, line 12
def initialize(lhs, rhs)
  @lhs = lhs
  @rhs = rhs

  freeze
end

Public Instance Methods

===(value) click to toggle source
# File lib/leftovers/matchers/or.rb, line 19
def ===(value)
  @lhs === value || @rhs === value
end