Class: GLib::Regex

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

Class Method Summary collapse

Class Method Details

.match?(pattern, string, options = {}) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/glib2/regex.rb', line 20

def match?(pattern, string, options={})
  new(pattern, options).match(string, options).matches?
end

.split(pattern, string, options = {}) ⇒ Object



24
25
26
# File 'lib/glib2/regex.rb', line 24

def split(pattern, string, options={})
  new(pattern, options).split(string, options)
end