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/set/range.rb, line 9
def <<(exp)
  complete? && raise("Can't add more than 2 expressions to a Range")
  super
end
complete?() click to toggle source
# File lib/regexp_parser/expression/classes/set/range.rb, line 14
def complete?
  count == 2
end
starts_at() click to toggle source
# File lib/regexp_parser/expression/classes/set/range.rb, line 4
def starts_at
  expressions.first.starts_at
end
Also aliased as: ts
to_s(_format = :full) click to toggle source
# File lib/regexp_parser/expression/classes/set/range.rb, line 18
def to_s(_format = :full)
  expressions.join(text)
end
ts()
Alias for: starts_at