Class: Concurrent::Actors::Case

Inherits:
Struct
  • Object
show all
Defined in:
lib/concurrent/actors/case.rb

Instance Method Summary collapse

Instance Method Details

#===(other) ⇒ Object



35
36
37
38
39
40
41
# File 'lib/concurrent/actors/case.rb', line 35

def ===(other)
  return false unless self.class == other.class
  zip(other) do |a, b|
    return false unless a === b
  end
  true
end