Class: Regexp

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

Instance Method Summary collapse

Instance Method Details

#&(other) ⇒ Object


29
30
31
# File 'lib/eregex.rb', line 29

def &(other)
  RegAnd.new(self, other)
end

#|(other) ⇒ Object


26
27
28
# File 'lib/eregex.rb', line 26

def |(other)
  RegOr.new(self, other)
end