class RegexpTree::Paren

(?ixm-ixm:…) (?>…)

Public Class Methods

new(r, mark='?:') click to toggle source
# File lib/regexptree.rb, line 495
def initialize(r, mark='?:')
  @mark = mark
  @r = r
end

Public Instance Methods

case_insensitive?() click to toggle source
# File lib/regexptree.rb, line 500
def case_insensitive?
  # xxx: if @mark contains "i"...
  @r.case_insensitive?
end
downcase() click to toggle source
# File lib/regexptree.rb, line 510
def downcase
  Paren.new(@r.downcase, @mark)
end
multiline_insensitive?() click to toggle source
# File lib/regexptree.rb, line 505
def multiline_insensitive?
  # xxx: if @mark contains "m"...
  @r.multiline_insensitive?
end
pretty_format(out) click to toggle source
# File lib/regexptree.rb, line 514
def pretty_format(out)
  out.group(1 + @mark.length, "(#@mark", ')') {
    @r.pretty_format(out)
  }
end