Class: String

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

Instance Method Summary collapse

Instance Method Details

#ogsub(*args) ⇒ Object

Calls Oniguruma::ORegexp#gsub on this string.



297
298
299
# File 'lib/oniguruma.rb', line 297

def ogsub(*args)
   Oniguruma::ORegexp.new(args.shift).gsub(self, *args)
end

#ogsub!(*args) ⇒ Object

Calls Oniguruma::ORegexp#gsub! on this string.



302
303
304
# File 'lib/oniguruma.rb', line 302

def ogsub!(*args)
   Oniguruma::ORegexp.new(args.shift).gsub!(self, *args)
end

#osub(re, *args) ⇒ Object

Calls Oniguruma::ORegexp#sub on this string.



307
308
309
# File 'lib/oniguruma.rb', line 307

def osub(re, *args)
   Oniguruma::ORegexp.new( re ).sub(self, *args)
end

#osub!(re, *args) ⇒ Object

Calls Oniguruma::ORegexp#sub! on this string.



312
313
314
# File 'lib/oniguruma.rb', line 312

def osub!(re, *args)
   Oniguruma::ORegexp.new( re ).sub(self, *args)
end