class Regexp::Expression::CharacterSet::Range

Public Instance Methods

<<(exp) click to toggle source
Calls superclass method Regexp::Expression::Subexpression#<<
# 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
complete?() click to toggle source
# File lib/regexp_parser/expression/classes/character_set/range.rb, line 15
def complete?
  count == 2
end
parts() click to toggle source
# File lib/regexp_parser/expression/classes/character_set/range.rb, line 19
def parts
  intersperse(expressions, text.dup)
end
starts_at() click to toggle 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
ts()
Alias for: starts_at