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