Sha256: 16297da65679d7b8814399d090b2e0eda42d8f2f0d5c8f22b712b41a20da5cdf
Contents?: true
Size: 1.26 KB
Versions: 7
Compression:
Stored size: 1.26 KB
Contents
module Regexp::Expression module Group class Base < Regexp::Expression::Subexpression def to_s(format = :full) "#{text}#{expressions.join})#{quantifier_affix(format)}" end def capturing?; false end def comment?; false end end class Atomic < Group::Base; end class Passive < Group::Base; end class Absence < Group::Base; end class Options < Group::Base attr_accessor :option_changes end class Capture < Group::Base attr_accessor :number, :number_at_level def capturing?; true end end class Named < Group::Capture attr_reader :name def initialize(token, options = {}) @name = token.text[3..-2] super end def initialize_clone(other) other.instance_variable_set(:@name, name.dup) super end end class Comment < Group::Base def to_s(_format = :full) text.dup end def comment?; true end end end module Assertion class Base < Regexp::Expression::Group::Base; end class Lookahead < Assertion::Base; end class NegativeLookahead < Assertion::Base; end class Lookbehind < Assertion::Base; end class NegativeLookbehind < Assertion::Base; end end end
Version data entries
7 entries across 7 versions & 2 rubygems