instance method
multiline?
Ruby on Rails edge
Since v6.1.7.10Signature
multiline?()
Returns true if the regexp has the multiline flag set.
“‘ (/./).multiline? # => false (/./m).multiline? # => true
Regexp.new(“.”).multiline? # => false Regexp.new(“.”, Regexp::MULTILINE).multiline? # => true “‘
Source
# File activesupport/lib/active_support/core_ext/regexp.rb, line 13
def multiline?
options & MULTILINE == MULTILINE
end
Defined in activesupport/lib/active_support/core_ext/regexp.rb line 13
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Regexp