Class: Pattern

Inherits:
Array show all
Defined in:
lib/colorable/system_extension.rb

Instance Method Summary collapse

Methods inherited from Array

#same?

Instance Method Details

#===(other) ⇒ Object



22
23
24
# File 'lib/colorable/system_extension.rb', line 22

def ===(other)
  zip(other).all? { |a, b| a === b }
end