class Concurrent::ErlangActor::EnvironmentConstants::Or

Combines matchers into one which matches if any matches. @example

Or[Symbol, String] === :v  # => true
Or[Symbol, String] === 'v' # => true
Or[Symbol, String] === 1   # => false

Public Instance Methods

===(v) click to toggle source

@return [true, false]

# File lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb, line 618
def ===(v)
  @matchers.any? { |m| m === v }
end