Class: Regexp

Inherits:
Object show all
Defined in:
lib/gitlab_build_output/core_ext/regexp.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#match?(string, pos = 0) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/gitlab_build_output/core_ext/regexp.rb', line 6

def match?(string, pos = 0)
  !!match(string, pos)
end

#multiline?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/gitlab_build_output/core_ext/regexp.rb', line 2

def multiline?
  options & MULTILINE == MULTILINE
end