Class: SimplePattern
- Inherits:
-
Array
- Object
- Array
- SimplePattern
- Defined in:
- lib/simple_pattern.rb,
lib/simple_pattern/version.rb
Defined Under Namespace
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 |