Sha256: 758e43292d8d0770edc9ad6d5b23dabd330c1cd87a8d7f5a308416573faa1a5a

Contents?: true

Size: 371 Bytes

Versions: 125

Compression:

Stored size: 371 Bytes

Contents

# frozen_string_literal: true

class Regexp
  # 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
  def multiline?
    options & MULTILINE == MULTILINE
  end
end

Version data entries

125 entries across 119 versions & 16 rubygems

Version Path
activesupport-8.0.0 lib/active_support/core_ext/regexp.rb
activesupport-7.2.2 lib/active_support/core_ext/regexp.rb
activesupport-7.1.5 lib/active_support/core_ext/regexp.rb
activesupport-8.0.0.rc2 lib/active_support/core_ext/regexp.rb
activesupport-7.2.1.2 lib/active_support/core_ext/regexp.rb
activesupport-7.1.4.2 lib/active_support/core_ext/regexp.rb
activesupport-7.0.8.6 lib/active_support/core_ext/regexp.rb
activesupport-6.1.7.10 lib/active_support/core_ext/regexp.rb
activesupport-8.0.0.rc1 lib/active_support/core_ext/regexp.rb
activesupport-6.1.7.9 lib/active_support/core_ext/regexp.rb
activesupport-7.2.1.1 lib/active_support/core_ext/regexp.rb
activesupport-7.1.4.1 lib/active_support/core_ext/regexp.rb
activesupport-7.0.8.5 lib/active_support/core_ext/regexp.rb
activesupport-8.0.0.beta1 lib/active_support/core_ext/regexp.rb
omg-activesupport-8.0.0.alpha9 lib/active_support/core_ext/regexp.rb
omg-activesupport-8.0.0.alpha8 lib/active_support/core_ext/regexp.rb
omg-activesupport-8.0.0.alpha7 lib/active_support/core_ext/regexp.rb
omg-activesupport-8.0.0.alpha4 lib/active_support/core_ext/regexp.rb
omg-activesupport-8.0.0.alpha3 lib/active_support/core_ext/regexp.rb
omg-activesupport-8.0.0.alpha2 lib/active_support/core_ext/regexp.rb