Class: Case::Tuple

Inherits:
Tuple
  • Object
show all
Defined in:
lib/case.rb

Instance Method Summary collapse

Instance Method Details

#===(other) ⇒ Object



40
41
42
43
44
# File 'lib/case.rb', line 40

def ===(other)
  return false unless ::Tuple === other and size == other.size
  to_a.zip(other) { |a, b| return false unless a === b }
  true
end