123456789_123456789_123456789_123456789_123456789_

Class: Concurrent::ErlangActor::EnvironmentConstants::And

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Concurrent::ErlangActor::EnvironmentConstants::AbstractLogicOperationMatcher
Defined in: lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb

Overview

Combines matchers into one which matches if all match.

Examples:

And[Numeric, -> v { v >= 0 }] === 1  # => true
And[Numeric, -> v { v >= 0 }] === -1 # => false

Class Method Summary

Instance Method Summary

Constructor Details

This class inherits a constructor from Concurrent::ErlangActor::EnvironmentConstants::AbstractLogicOperationMatcher

Instance Method Details

#===(v) ⇒ true, false

[ GitHub ]

  
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 610

def ===(v)
  @matchers.all? { |m| m === v }
end