Class: Regexp

Inherits:
Object show all
Defined in:
lib/dns_one/core_ext/blank.rb

Overview

activesupport-5.1.1/lib/active_support/core_ext/regexp.rb

Instance Method Summary collapse

Instance Method Details

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

Returns:

  • (Boolean)


9
10
11
# File 'lib/dns_one/core_ext/blank.rb', line 9

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

#multiline?Boolean

:nodoc:

Returns:

  • (Boolean)


5
6
7
# File 'lib/dns_one/core_ext/blank.rb', line 5

def multiline?
  options & MULTILINE == MULTILINE
end