Class: SimplePattern

Inherits:
Array
  • Object
show all
Defined in:
lib/simple_pattern.rb,
lib/simple_pattern/version.rb

Defined Under Namespace

Classes: All, Any, Not

Constant Summary collapse

VERSION =
"0.1.0"

Instance Method Summary collapse

Instance Method Details

#===(other) ⇒ Object



7
8
9
# File 'lib/simple_pattern.rb', line 7

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