Returns smallest possible range spanning both this range and ‘other`.
Parameters:
Returns:
smallest possible range spanning both this range and ‘other`.
209 210 211 212 213
# File 'lib/parser/source/range.rb', line 209 def join(other) Range.new(@source_buffer, [@begin_pos, other.begin_pos].min, [@end_pos, other.end_pos].max) end