Sha256: 758e43292d8d0770edc9ad6d5b23dabd330c1cd87a8d7f5a308416573faa1a5a

Contents?: true

Size: 371 Bytes

Versions: 132

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

132 entries across 126 versions & 18 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.7/lib/active_support/core_ext/regexp.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/activesupport-7.1.3.4/lib/active_support/core_ext/regexp.rb
activesupport-8.0.1 lib/active_support/core_ext/regexp.rb
activesupport-8.0.0.1 lib/active_support/core_ext/regexp.rb
activesupport-7.2.2.1 lib/active_support/core_ext/regexp.rb
activesupport-7.1.5.1 lib/active_support/core_ext/regexp.rb
activesupport-7.0.8.7 lib/active_support/core_ext/regexp.rb
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