Class: Oniguruma::ORegexp
- Inherits:
-
Regexp
- Object
- Regexp
- Oniguruma::ORegexp
- 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, = "") ropts = 0 ropts = ropts | Regexp::MULTILINE if =~ /m/ ropts = ropts | Regexp::IGNORECASE if =~ /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 |