Sha256: c92aa60b82e6d3297b4fe75d1384a2b14bd4aadef8fa9a5d33aaaaac35694775
Contents?: true
Size: 570 Bytes
Versions: 1
Compression:
Stored size: 570 Bytes
Contents
module Regexp::Expression class Quantifier attr_reader :token, :text, :min, :max, :mode def initialize(token, text, min, max, mode) @token = token @text = text @mode = mode @min = min @max = max end def initialize_clone(other) other.instance_variable_set(:@text, text.dup) super end def to_s text.dup end alias :to_str :to_s def to_h { token: token, text: text, mode: mode, min: min, max: max, } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
regexp_parser-1.0.0 | lib/regexp_parser/expression/quantifier.rb |