Method: RubyXL::Reference#cover?

Defined in:
lib/rubyXL/objects/reference.rb

#cover?(other) ⇒ Boolean



52
53
54
55
# File 'lib/rubyXL/objects/reference.rb', line 52

def cover?(other)
  !other.nil? && (@row_range.cover?(other.row_range.begin) && @row_range.cover?(other.row_range.end) &&
                  @col_range.cover?(other.col_range.begin) && @col_range.cover?(other.col_range.end))
end