instance method
multiline?
Ruby on Rails 7.1.6
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 11
def multiline?
options & MULTILINE == MULTILINE
end
Defined in activesupport/lib/active_support/core_ext/regexp.rb line 11
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Regexp