Class: SimplePattern::Any

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.===(other) ⇒ Object



18
19
20
# File 'lib/simple_pattern.rb', line 18

def self.===(other)
  true
end

Instance Method Details

#===(other) ⇒ Object



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

def ===(other)
  any? {|a| a === other }
end