Represents a syntax element location in source code - where it begins and where it ends.
It’s a value object - it can’t be modified.
A re-usable empty range
Creates a new range that immediately follows this one and contains the given string.
# File lib/rkelly/char_range.rb, line 18 def next(string) CharRange.new(@to.next(string.slice(0, 1)), @to.next(string)) end
# File lib/rkelly/char_range.rb, line 22 def to_s "<#{@from}...#{@to}>" end
Generated with the Darkfish Rdoc Generator 2.