class Regexp

def multiline?

Experimental RBS support (using type sampling data from the type_fusion project).

def multiline?: () -> false

This signature was generated using 1 sample from 1 application.

Regexp.new(".", Regexp::MULTILINE).multiline? # => true
Regexp.new(".").multiline? # => false

(/./m).multiline? # => true
(/./).multiline? # => false

Returns +true+ if the regexp has the multiline flag set.
def multiline?
  options & MULTILINE == MULTILINE
end