class Regexp::Expression::CharacterSet::Range
Public Instance Methods
Source
# File lib/regexp_parser/expression/classes/character_set/range.rb, line 10 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 16 def complete? count == 2 end
Source
# File lib/regexp_parser/expression/classes/character_set/range.rb, line 6 def ts (head = expressions.first) ? head.ts : @ts end