Sha256: 6998ab98595ebf2e3348ad8199c795359ae33d66c23088946ef44429f5f1d8db
Contents?: true
Size: 558 Bytes
Versions: 95
Compression:
Stored size: 558 Bytes
Contents
module Regexp::Expression class CharacterSet < Regexp::Expression::Subexpression attr_accessor :closed, :negative alias :negative? :negative alias :negated? :negative alias :closed? :closed def initialize(token, options = {}) self.negative = false self.closed = false super end def negate self.negative = true end def close self.closed = true end end # alias for symmetry between token symbol and Expression class name Set = CharacterSet end # module Regexp::Expression
Version data entries
95 entries across 95 versions & 11 rubygems