class Regexp::Expression::CharacterSet::Range
Public Instance Methods
Source
# File lib/regexp_parser/expression/classes/character_set/range.rb, line 9 def <<(exp) complete? and raise Regexp::Parser::Error, "Can't add more than 2 expressions to a Range" super end
Calls superclass method
Regexp::Expression::Subexpression#<<
Source
# File lib/regexp_parser/expression/classes/character_set/range.rb, line 15 def complete? count == 2 end
Source
# File lib/regexp_parser/expression/classes/character_set/range.rb, line 19 def parts intersperse(expressions, text.dup) end
Source
# File lib/regexp_parser/expression/classes/character_set/range.rb, line 4 def starts_at expressions.first.starts_at end
Also aliased as: ts