class Regexp::Expression::Quantifier
Constants
- MODES
Attributes
max[R]
min[R]
mode[R]
text[R]
token[R]
Public Class Methods
new(token, text, min, max, mode)
click to toggle source
# File lib/regexp_parser/expression/quantifier.rb, line 7 def initialize(token, text, min, max, mode) @token = token @text = text @mode = mode @min = min @max = max end
Public Instance Methods
==(other)
click to toggle source
# File lib/regexp_parser/expression/quantifier.rb, line 44 def ==(other) other.class == self.class && other.token == token && other.mode == mode && other.min == min && other.max == max end
Also aliased as: eq
initialize_copy(orig)
click to toggle source
Calls superclass method
# File lib/regexp_parser/expression/quantifier.rb, line 15 def initialize_copy(orig) @text = orig.text.dup super end
to_h()
click to toggle source
# File lib/regexp_parser/expression/quantifier.rb, line 25 def to_h { token: token, text: text, mode: mode, min: min, max: max, } end
to_s()
click to toggle source
# File lib/regexp_parser/expression/quantifier.rb, line 20 def to_s text.dup end
Also aliased as: to_str