class SuperDiff::TieredLinesElider::Box
Public Instance Methods
extend_to(new_end)
click to toggle source
# File lib/super_diff/tiered_lines_elider.rb, line 459 def extend_to(new_end) @range = range.begin..new_end end
extended_to(new_end)
click to toggle source
# File lib/super_diff/tiered_lines_elider.rb, line 455 def extended_to(new_end) dup.tap { |clone| clone.extend_to(new_end) } end
fits_fully_within?(other)
click to toggle source
# File lib/super_diff/tiered_lines_elider.rb, line 451 def fits_fully_within?(other) other.range.begin <= range.begin && other.range.end >= range.end end
fully_contains?(other)
click to toggle source
# File lib/super_diff/tiered_lines_elider.rb, line 447 def fully_contains?(other) range.begin <= other.range.begin && range.end >= other.range.end end