Class: Oniguruma::ORegexp

Inherits:
Regexp
  • Object
show all
Defined in:
lib/web-page-parser.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new(r, options = "") ⇒ Object



19
20
21
22
23
24
# File 'lib/web-page-parser.rb', line 19

def self.new(r, options = "")
  ropts = 0
  ropts = ropts | Regexp::MULTILINE if options =~ /m/
  ropts = ropts | Regexp::IGNORECASE if options =~ /i/
  super(r, ropts)
end

Instance Method Details

#gsub(a, b) ⇒ Object



26
27
28
# File 'lib/web-page-parser.rb', line 26

def gsub(a, b)
  a.gsub(self, b)
end