def link_to_check=(value)
      if external?(value)
        @link_to_check = value
      else
        value.sub!(old_url_regex, '') if @old_domain
        if value.start_with?('/')
          @link_to_check = value.sub(%r{(^/)}, '')
          @target_file = File.expand_path(File.join(@local_site_dir, @link_to_check))
        else
          @link_to_check = File.dirname(@containing_file).sub(@local_site_dir, '') + '/' + value
          @link_to_check.sub!(%r{(^/)}, '')
          @target_file = File.expand_path(File.join(File.dirname(@containing_file), value))
        end
      end
    end
def link_to_check=(value)
      if external?(value)
        @link_to_check = value
      else
        value.sub!(old_url_regex, '') if @old_domain
        if value.start_with?('/')
          @link_to_check = value.sub(%r{(^/)}, '')
          @target_file = File.expand_path(File.join(@local_site_dir, @link_to_check))
        else
          @link_to_check = File.dirname(@containing_file).sub(@local_site_dir, '') + '/' + value
          @link_to_check.sub!(%r{(^/)}, '')
          @target_file = File.expand_path(File.join(File.dirname(@containing_file), value))
        end
      end
    end
Attributes