Class: GLib::Regex
- Inherits:
-
Object
- Object
- GLib::Regex
- Defined in:
- lib/glib2/regex.rb
Class Method Summary collapse
Class Method Details
.match?(pattern, string, options = {}) ⇒ Boolean
20 21 22 |
# File 'lib/glib2/regex.rb', line 20 def match?(pattern, string, ={}) new(pattern, ).match(string, ).matches? end |
.split(pattern, string, options = {}) ⇒ Object
[View source]
24 25 26 |
# File 'lib/glib2/regex.rb', line 24 def split(pattern, string, ={}) new(pattern, ).split(string, ) end |